aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-03-06 19:25:27 +0100
committerintrigeri <intrigeri@boum.org>2010-03-06 19:25:27 +0100
commit1cd91839c360931fc97bdef0b31d7887218d00ed (patch)
treeeaf7a0f37d15339d6939fd109b85c9ab8ad8c24b /handlers
parent7dce2f1138796cfb78c22a402b6039bdf76d4220 (diff)
downloadbackupninja-1cd91839c360931fc97bdef0b31d7887218d00ed.tar.gz
backupninja-1cd91839c360931fc97bdef0b31d7887218d00ed.tar.bz2
dup: use duplicity's --extra-clean option when necessary
This is necessary to get rid of unnecessary old cache files when cleaning up, when using duplicity >=0.6.01 that depends on local caching. Closes: #572721
Diffstat (limited to 'handlers')
-rw-r--r--handlers/dup.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/handlers/dup.in b/handlers/dup.in
index ffae48c..c8dfcba 100644
--- a/handlers/dup.in
+++ b/handlers/dup.in
@@ -165,6 +165,11 @@ if [ "$incremental" == "no" ]; then
fi
fi
+### Cleanup options
+if [ "$duplicity_major" -ge 0 -a "$duplicity_minor" -ge 6 -a "$duplicity_sub" -ge 1 ]; then
+ execstr_options="${execstr_options} --extra-clean"
+fi
+
### Temporary directory
precmd=
if [ -n "$tmpdir" ]; then