diff options
author | intrigeri <intrigeri@boum.org> | 2008-06-29 07:26:36 +0000 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2008-06-29 07:26:36 +0000 |
commit | 0a6abfc3cef116a69c7a4c8a820a08406432b46f (patch) | |
tree | 18fd7ba0c4baf3a4e9ce8391e1567d96f67283fa /handlers | |
parent | 947b6f03ff22074b667ffec8067e5295dd13874b (diff) | |
download | backupninja-0a6abfc3cef116a69c7a4c8a820a08406432b46f.tar.gz backupninja-0a6abfc3cef116a69c7a4c8a820a08406432b46f.tar.bz2 |
dup: added option --force to cleanup and remove-older-than commands, else they actually do not do anything
Diffstat (limited to 'handlers')
-rw-r--r-- | handlers/dup.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/handlers/dup.in b/handlers/dup.in index 89db671..9c6a493 100644 --- a/handlers/dup.in +++ b/handlers/dup.in @@ -221,12 +221,12 @@ execstr_source=${execstr_source//\\*/\\\\\\*} # cleanup if [ "$duplicity_major" -ge 0 -a "$duplicity_minor" -ge 4 -a "$duplicity_sub" -ge 4 ]; then - debug "$precmd duplicity cleanup $execstr_options $execstr_serverpart" + debug "$precmd duplicity cleanup --force $execstr_options $execstr_serverpart" if [ ! $test ]; then export PASSPHRASE=$password output=`nice -n $nicelevel \ su -c \ - "$precmd duplicity cleanup $execstr_options $execstr_serverpart 2>&1"` + "$precmd duplicity cleanup --force $execstr_options $execstr_serverpart 2>&1"` exit_code=$? if [ $exit_code -eq 0 ]; then debug $output @@ -241,12 +241,12 @@ fi # remove-older-than if [ "$keep" != "yes" ]; then if [ "$duplicity_major" -ge 0 -a "$duplicity_minor" -ge 4 -a "$duplicity_sub" -ge 4 ]; then - debug "$precmd duplicity remove-older-than $keep $execstr_options $execstr_serverpart" + debug "$precmd duplicity remove-older-than $keep --force $execstr_options $execstr_serverpart" if [ ! $test ]; then export PASSPHRASE=$password output=`nice -n $nicelevel \ su -c \ - "$precmd duplicity remove-older-than $keep $execstr_options $execstr_serverpart 2>&1"` + "$precmd duplicity remove-older-than $keep --force $execstr_options $execstr_serverpart 2>&1"` exit_code=$? if [ $exit_code -eq 0 ]; then debug $output |