HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Encrypted FTP backups with duplicity (http://www.howtoforge.com/forums/showthread.php?t=23580)

sjau 24th May 2008 18:23

Encrypted FTP backups with duplicity
 
http://www.howtoforge.com/ftp-backup...ty-debian-etch

Hmmm, I already fail at step 3.

Code:

cp:/backup# FTP_PASSWORD=secred duplicity /path/to/some/folder ftp://ftpuser@ftpserver/
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 373, in ?
    if __name__ == "__main__": main()
  File "/usr/bin/duplicity", line 349, in main
    globals.archive_dir).set_values()
  File "/usr/lib/python2.4/site-packages/duplicity/collections.py", line 406, in set_values
    backend_filename_list = self.backend.list()
  File "/usr/lib/python2.4/site-packages/duplicity/backends.py", line 365, in list
    try: return self.error_wrap('nlst')
  File "/usr/lib/python2.4/site-packages/duplicity/backends.py", line 335, in error_wrap
    except ftplib.all_errors, e: raise BackendException(e)
duplicity.backends.BackendException: 226 Transfer complete.

any idea?

falko 25th May 2008 18:26

http://www.howtoforge.com/forums/showthread.php?t=9013

Unfortunately I have no idea what's causing the problem... :(

sjau 28th May 2008 19:33

Hi falko

I added a comment on how to make it work :) it was very simple actually - just you need to know how ;)

n6pfk 10th July 2012 18:04

Failure with non-standard ftp port
 
i have tried :xxxx after the host name and it is recognized but the :port part is dropped by various ncftp commands so I receive an error from the remote ftp server. I have sarched for alternative methods of specifying the port number but they either fail immediately or eventually drop the port number in the host string sent to the remote server.

FTP_PASSWORD=???????? duplicity -v 9 .local/share/evolution ftp://mike@"host_name:1976"/evolution
Using archive dir: /home/mike/.cache/duplicity/464f3be00fbc0c5469e19252420b3a43
Using backup name: 464f3be00fbc0c5469e19252420b3a43
Import of duplicity.backends.u1backend Succeeded
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.giobackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
Import of duplicity.backends.cloudfilesbackend Succeeded
Import of duplicity.backends.ftpsbackend Succeeded
Import of duplicity.backends.sshbackend Succeeded
Import of duplicity.backends.ftpbackend Succeeded
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
NcFTP version is 3.2.5
Using temporary directory /tmp/duplicity-0Oi7nA-tempdir
Registering (mkstemp) temporary file /tmp/duplicity-0Oi7nA-tempdir/mkstemp-5POKud-1
Main action: inc
================================================== ==============================
duplicity 0.6.15 (August 19, 2011)
Args: /usr/bin/duplicity -v 9 .local/share/evolution ftp://mike@host_name:1976/evolution
Linux HP-Mini 3.0.0-22-generic #36-Ubuntu SMP Tue Jun 12 17:13:04 UTC 2012 i686 i686
/usr/bin/python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1]
================================================== ==============================
Registering (mkstemp) temporary file /tmp/duplicity-0Oi7nA-tempdir/mkstemp-ZCLE2z-2
Temp has 19117944832 available, backup will use approx 34078720.
Reading results of 'ncftpls -f /tmp/duplicity-0Oi7nA-tempdir/mkstemp-5POKud-1 -F -t 30 -o useCLNT=0,useHELP_SITE=0 -P '1976' -l 'ftp://host_name:1976/evolution/''
Running 'ncftpls -f /tmp/duplicity-0Oi7nA-tempdir/mkstemp-5POKud-1 -F -t 30 -o useCLNT=0,useHELP_SITE=0 -P '1976' -l 'ftp://nost_name:1976/evolution/'' failed with code 1 (attempt #1)
Error is:
Invalid reply: "SSH-2.0-OpenSSH_5.1"
ncftpls: cannot open host_name: invalid reply from server.

^CRemoving still remembered temporary file /tmp/duplicity-0Oi7nA-tempdir/mkstemp-5POKud-1
Removing still remembered temporary file /tmp/duplicity-0Oi7nA-tempdir/mkstemp-ZCLE2z-2
INT intercepted...exiting.

As you can see it drops the port number.

Any ideas on this problem?

falko 11th July 2012 18:03

You can specify the port with the -P switch - see http://www.ncftp.com/ncftp/doc/ncftp.html

n6pfk 11th July 2012 19:44

Several other port attemps fail.
 
FTP_PASSWORD=???????? duplicity -v 9 -P 1976 .local/share/evolution ftp://mike@hostname/evolution

duplicity: error: no such option: -P

falko 12th July 2012 10:21

According to http://duplicity.nongnu.org/duplicity.1.html , the format is:

scheme://user[:password]@host[:port]/[/]path

n6pfk 12th July 2012 16:51

port number
 
I can do a successful back and restore to a local machine that uses port 22 without using hostname:22. If I use hostname:22 if fails in the same way as using hostname:1976 to my remote server?

Something is wrong with the documentation?

It recognizes ":22" as "-P 22" but then the server refuses to respond.

Try using hostname:22 to the server you backup to and let me know if it works?


All times are GMT +2. The time now is 03:55.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.