aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Mette <mail@amette.eu>2013-11-17 15:55:05 +0100
committerintrigeri <intrigeri@boum.org>2014-02-22 13:39:27 +0000
commite27654df5c688988fbab318d735b48f051a3d1f7 (patch)
treee4952bc398ad10dde1394df95433111432a20197
parente96a894bb85b72253a2a1e69e36f4f6e89713078 (diff)
downloadbackupninja-e27654df5c688988fbab318d735b48f051a3d1f7.tar.gz
backupninja-e27654df5c688988fbab318d735b48f051a3d1f7.tar.bz2
Fix #6357 - Don't remove useful signature files
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
-rw-r--r--handlers/dup.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/handlers/dup.in b/handlers/dup.in
index a67848f..1ce7710 100644
--- a/handlers/dup.in
+++ b/handlers/dup.in
@@ -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