Pydrive broken resume: not dealing with duplicate filenames
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
New
|
Undecided
|
Unassigned |
Bug Description
Google drive supports two files with the same name in the same place. This isn't being handled currently.
Resume from interrupted full backup does not currently work, here are some reasons:
* On resume, it re-uploads last file in manifest without deleting it from the server beforehand, resulting in two files of the same name. It attempts to add the file to an internal python list/dictionary and crashes.
* On occasion, the same file is added twice. On reading the server, it attempts to add the file to an internal python list/dictionary and crashes.
Workarounds:
* On resume, always delete last file. Manifest should always contain more files.
* When duplicate files are found "in the middle", duplicity will crash, giving the duplicate filename in the array printed (last element). Do this over and over until all dupes are gone.
Duplicity 7.04
Python 2.7.10
Looks discussed in https:/ /lists. nongnu. org/archive/ html/duplicity- talk/2015- 06/msg00003. html