duplicity sftp backend should ignore removing a file which is not there

Bug #782321 reported by Markus
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

Using ubuntu lucid ppa: 0.6.13-0ubuntu1~lucid1 with sftp.

when duplicity tries to remove a file on a backend which isn't there, it is something that shouldn't happen in the first place. however for me, it always tries to delete the .manifest of an old partial backup which results in duplicity erroring out without starting a new full one.

below is a simple patch which detects if the failing command is a remove-command and ignores the errors when the file to be removed is already not present.

Revision history for this message
Markus (doits) wrote :
Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

Thanks for the patch!

Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.6.14
status: New → Fix Committed
Changed in duplicity:
status: Fix Committed → Fix Released
Revision history for this message
Olivier - interfaSys (olivier-interfasys) wrote :

This is still a problem with version 0.6.20.

The purge task will always fail because of duplicity trying to delete ghost files and the operation has to be repeated multiple times in a row until all old backups have finally been removed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.