Backup remote to local - how to?

Asked by Carlos Franke

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?

Question information

Language:
English Edit question
Status:
Solved
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Solved by:
Carlos Franke
Solved:
Last query:
Last reply:
Revision history for this message
edso (ed.so) said :
#1

Your using the wrong application ;). Duplicity's source has to a be local filessystem, remote sources are not supported. You might however want to try a ftpfs based approach. I personally mount some smaller sources with sshfs before some backups.

ede/duply.net

On 03.02.2011 13:31, Carlos Franke wrote:
> 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?
>

Revision history for this message
Carlos Franke (carlos-franke) said :
#2

Hi again and thanks!

I am now using curlftpfs to mount the remote source locally. Works like a charm with duplicity!

Revision history for this message
edso (ed.so) said :
#3

On 03.02.2011 23:17, Carlos Franke wrote:
> Question #143932 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/143932
>
> Status: Answered => Solved
>
> Carlos Franke confirmed that the question is solved:
> Hi again and thanks!
>
> I am now using curlftpfs to mount the remote source locally. Works like
> a charm with duplicity!
>

glad i could be of help, regards ede