[英]Duplicity restore produces an error “No backup chains found”
I'm testing duplicity's restore functionality:我正在测试 duplicity 的恢复功能:
duplicity restore file://fullSystemBackup/ backupOutput
Which produces an error of:这会产生以下错误:
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
What does this error mean?这个错误是什么意思?
The path in file://fullSystemBackup/
should be an absolute path... file://fullSystemBackup/
中的路径应该是绝对路径...
So I did file://"$PWD"/fullSystemBackup/
...所以我做了
file://"$PWD"/fullSystemBackup/
...
There's a missing '/' in the source uri, after 'file:'源 uri 中缺少“/”,在“file:”之后
Instead of:而不是:
duplicity restore file://fullSystemBackup/ backupOutput
It has to be:它必须是:
duplicity restore file:///fullSystemBackup/ backupOutput
Btw, this Last full backup date: none
was a clue that something was wrong with the source顺便说一句,这个
Last full backup date: none
线索表明源有问题
I was getting the same error when running我在运行时遇到了同样的错误
sudo duplicity --file-to-restore home/tobin/build/imgs file:///mnt/xhd/ /home/tobin/build/imgs
For my system at least file://
should point to the directory 'duplicity'.对于我的系统,至少
file://
应该指向目录“duplicity”。 So the correct command was所以正确的命令是
sudo duplicity --file-to-restore home/tobin/build/imgs file:///mnt/xhd/duplicity /home/tobin/build/imgs
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.