← Back to team overview

duplicity-team team mailing list archive

[Question #143932]: Backup remote to local - how to?

 

New question #143932 on Duplicity:
https://answers.launchpad.net/duplicity/+question/143932

Hi!


This might be trivial, but I can not figure out how to do a backup from a remote source to a local target with duplicity.


When I simply do:

FTP_PASSWORD=xyz duplicity --no-encryption ftp://my.ftp/myfolder /my/local/backup/folder/

duplicity assumes I want to restore a backup from remote to local and then fails to do so due to the lack of any existing backups:

NcFTP version is 3.2.5
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1245, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1238, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1192, in main
    restore(col_stats)
  File "/usr/bin/duplicity", line 539, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/usr/bin/duplicity", line 561, in restore_get_patched_rop_iter
    backup_chain = col_stats.get_backup_chain_at_time(time)
  File "/usr/lib/python2.7/site-packages/duplicity/collections.py", line 939, in get_backup_chain_at_time
    raise CollectionsError("No backup chains found")
CollectionsError: No backup chains found


When I explicitely specify "incremental" or "full" like:

FTP_PASSWORD=xyz duplicity --no-encryption ftp://my.ftp/myfolder /my/local/backup/folder/

I get a "command line error: "--incremental option cannot be used when restoring or verifying"


What am I doing wrong?

-- 
You received this question notification because you are a member of
duplicity-team, which is an answer contact for Duplicity.