口是心非的还原产生错误 "No backup chains found"

Duplicity restore produces an error "No backup chains found"

我正在测试口是心非的恢复功能:

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

这个错误是什么意思?

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

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

我在 运行

时遇到了同样的错误

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

在 'file:'

之后,源 uri 中缺少一个“/”

而不是:

duplicity restore file://fullSystemBackup/ backupOutput

必须是:

duplicity restore file:///fullSystemBackup/ backupOutput

顺便说一下,这个 Last full backup date: none 是一个线索,表明来源有问题