]> gitweb.fluxo.info Git - backupninja.git/commitdiff
Fix #6357 - Don't remove useful signature files
authorAlexander Mette <mail@amette.eu>
Sun, 17 Nov 2013 14:55:05 +0000 (15:55 +0100)
committerintrigeri <intrigeri@boum.org>
Sat, 22 Feb 2014 13:39:27 +0000 (13:39 +0000)
duplicity >=0.6.20 now correctly removes useless signature files and
therefore the cache directory doesn't grow infinitely any more. Using
--extra-clean removes all signatures except from the last chain and so
renders older chains unusable, don't use it by default any more.
See: https://bugs.launchpad.net/duplicity/+bug/519948

handlers/dup.in

index a67848f6ab0576d8ad5191a3874ad25d0f2f8c32..1ce7710ccdf0b7e4c85ed2d1e47f7cdb731dd834 100644 (file)
@@ -191,7 +191,9 @@ else
 fi
 
 ### Cleanup options
-execstr_options="${execstr_options} --extra-clean"
+if [ "$duplicity_major" -le 0 -a "$duplicity_minor" -le 6 -a "$duplicity_sub" -le 19 ]; then
+   execstr_options="${execstr_options} --extra-clean"
+fi
 
 ### Temporary directory
 if [ -n "$tmpdir" ]; then