Comment 2 for bug 929067

Revision history for this message
Michael Terry (mterry) wrote :

For anyone affected by this bug, try this workaround and please report back:

 * sudo gedit /usr/share/pyshared/duplicity/diffdir.py
 * Find a line like "if delta is not None:" and replace it with "if delta is not None and not (delta.index == () and delta.difftype == 'deleted'):"
 * Close gedit and try restoring again

For the technical details of what's going on:
The interrupted backup is causing two identical "snapshot/" directory entries to be put into the full sigtar. This confuses duplicity and it thinks the base directory (i.e. "." or () depending on whether you talk duplicity or not) is deleted.

I think there's a two pronged approach to this. 1) Gracefully ignore base iters that claim to be deleted, since that's just bogus. (And that's what the above patch does). 2) Don't write duplicate snapshot/ entries in the tar file in the first place. Looking into that one.