Ubuntu 16.04 LTS 备份恢复问题

Ubuntu 16.04 LTS 备份恢复问题

我使用创建了备份backups重新安装笔记本电脑之前,请先安装软件;硬盘更大。我现在无法恢复备份,它运行了一小会儿,然后再次尝试恢复相同的文件,然后出现以下错误。有经验的人知道以下错误认为问题是什么吗?备份中有一些重要的数据文件需要恢复。

提前致谢!

回溯(最近一次调用最后一次):

 File "/usr/bin/duplicity", line 1532, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1526, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1380, in main
    do_backup(action)
  File "/usr/bin/duplicity", line 1457, in do_backup
    restore(col_stats)
  File "/usr/bin/duplicity", line 722, in restore
    restore_get_patched_rop_iter(col_stats)):
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 562, in Write_ROPaths
    ITR(ropath.index, ropath)
  File "/usr/lib/python2.7/dist-packages/duplicity/lazy.py", line 344, in __call__
    last_branch.fast_process, args)
  File "/usr/lib/python2.7/dist-packages/duplicity/robust.py", line 38, in check_common_error
    return function(*args)
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 616, in fast_process
    ropath.copy(self.base_path.new_index(index))
  File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 444, in copy
    other.writefileobj(self.open("rb"))
  File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 620, in writefileobj
    buf = fin.read(_copy_blocksize)
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 212, in read
    if not self.addtobuffer():
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 237, in addtobuffer
    self.tarinfo_list[0] = self.tar_iter.next()
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 344, in next
    self.set_tarfile()
  File "/usr/lib/python2.7/dist-packages/duplicity/patchdir.py", line 333, in set_tarfile
    self.current_fp = self.fileobj_iter.next()
  File "/usr/bin/duplicity", line 758, in get_fileobj_iter
    backup_set.volume_name_dict[vol_num],
KeyError: 68

答案1

尽管我找不到有关回溯代码的任何信息,但我可以通过以下方式从档案中选择性地恢复:

duplicity -t 3D --no-encryption --force --file-to-restore home/cmyers/VirtualMachines file:///Old-Ubuntu /home/c_myers/VirtualMachines/

至少我可以从备份中找回我想要的文件。

干杯,上校。

答案2

这似乎对我有帮助(清除缓存):

mv ~/.cache/duplicity ~/.cache/duplicity.old

相关内容