3

我正在测试 duplicity 的恢复功能:

duplicity restore file://fullSystemBackup/ backupOutput

这会产生以下错误:

Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
GnuPG passphrase for decryption: 
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1546, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1540, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1391, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1468, in do_backup
    restore(col_stats)
  File "/usr/bin/duplicity", line 731, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/usr/bin/duplicity", line 753, in restore_get_patched_rop_iter
    backup_chain = col_stats.get_backup_chain_at_time(time)
  File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 971, in get_backup_chain_at_time
    raise CollectionsError("No backup chains found")
CollectionsError: No backup chains found

这个错误是什么意思?

4

3 回答 3

2

中的路径file://fullSystemBackup/应该是绝对路径...

所以我做了file://"$PWD"/fullSystemBackup/...

于 2018-01-11T15:47:56.050 回答
2

在 'file:' 之后,源 uri 中缺少一个 '/'

代替:

duplicity restore file://fullSystemBackup/ backupOutput

它一定要是:

duplicity restore file:///fullSystemBackup/ backupOutput

顺便说一句,这Last full backup date: none是来源有问题的线索

于 2020-05-10T10:14:06.560 回答
1

我在运行时遇到了同样的错误

sudo duplicity --file-to-restore home/tobin/build/imgs file:///mnt/xhd/ /home/tobin/build/imgs

对于我的系统,至少file://应该指向目录'duplicity'。所以正确的命令是

sudo duplicity --file-to-restore home/tobin/build/imgs file:///mnt/xhd/duplicity /home/tobin/build/imgs

于 2018-03-22T22:41:38.243 回答