Encrypted FTP backups with duplicity

Discussion in 'HOWTO-Related Questions' started by sjau, May 24, 2008.

  1. sjau

    sjau Local Meanie Moderator

    http://www.howtoforge.com/ftp-backups-with-duplicity-ftplicity-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?
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. sjau

    sjau Local Meanie Moderator

    Hi falko

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

    n6pfk New Member

    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?
     
  5. falko

    falko Super Moderator Howtoforge Staff

  6. n6pfk

    n6pfk New Member

    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
     
  7. falko

    falko Super Moderator Howtoforge Staff

  8. n6pfk

    n6pfk New Member

    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?
     

Share This Page