I created a backup using backups program before reinstalling my laptop; bigger hard drive. I now cannot restore the backup, it ran through for a short while then looks to restore the same files again then fails with the below error. Does anyone with experience know what the error below thinks the problem is? There are some important data files in the backup I need to restore.

Thanks in advance!

Traceback (most recent call last):

 File "/usr/bin/duplicity", line 1532, in <module>
  File "/usr/bin/duplicity", line 1526, in with_tempdir
  File "/usr/bin/duplicity", line 1380, in main
  File "/usr/bin/duplicity", line 1457, in do_backup
  File "/usr/bin/duplicity", line 722, in restore
  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
  File "/usr/lib/python2.7/dist-packages/duplicity/path.py", line 444, in copy
  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
  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
KeyError: 68
  • When you say "re-install my laptop" what does that mean, then, did you backup to an external device ? – George Udosen Dec 26 '16 at 15:19
  • Sorry, yes, I backed up to a USB hard drive. I have tried restoring directly from it and copying the backup folder contents to the new Hard Drive to restore and they both fail as above. – Colin Myers Dec 26 '16 at 15:22
  • It won't work by mere copying. These data files were in what folders before backup ? – George Udosen Dec 26 '16 at 15:26
  • If you mean the original location, its a backup of my home folder /home/cmyers. – Colin Myers Dec 26 '16 at 15:28
  • Also, the backup program used duplicity so the files are in its compressed format with a form of index file. – Colin Myers Dec 26 '16 at 15:30

although I cannot find anything about the traceback code I can selectively restore from the archives via:

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

At least I can get the files back that I want from the backup.

Cheers, Col.


This seems to have helped me (clearing the cache):

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.