我正在测试双重性恢复功能:
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
这个错误是什么意思?
答案 0 :(得分:2)
在源uri中,在“文件:”之后缺少一个“ /”
代替:
duplicity restore file://fullSystemBackup/ backupOutput
必须为:
duplicity restore file:///fullSystemBackup/ backupOutput
顺便说一句,这个Last full backup date: none
提示来源有问题
答案 1 :(得分:1)
$( ".parent .child" ).click(function() {
console.log("child");
});
中的路径应该是绝对路径......
所以我做了file://fullSystemBackup/
...
答案 2 :(得分: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