Skip to content
Snippets Groups Projects
Commit 0a6abfc3 authored by intrigeri's avatar intrigeri
Browse files

dup: added option --force to cleanup and remove-older-than commands, else they...

dup: added option --force to cleanup and remove-older-than commands, else they actually do not do anything
parent 947b6f03
Branches
Tags
No related merge requests found
...@@ -221,12 +221,12 @@ execstr_source=${execstr_source//\\*/\\\\\\*} ...@@ -221,12 +221,12 @@ execstr_source=${execstr_source//\\*/\\\\\\*}
# cleanup # cleanup
if [ "$duplicity_major" -ge 0 -a "$duplicity_minor" -ge 4 -a "$duplicity_sub" -ge 4 ]; then 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 if [ ! $test ]; then
export PASSPHRASE=$password export PASSPHRASE=$password
output=`nice -n $nicelevel \ output=`nice -n $nicelevel \
su -c \ su -c \
"$precmd duplicity cleanup $execstr_options $execstr_serverpart 2>&1"` "$precmd duplicity cleanup --force $execstr_options $execstr_serverpart 2>&1"`
exit_code=$? exit_code=$?
if [ $exit_code -eq 0 ]; then if [ $exit_code -eq 0 ]; then
debug $output debug $output
...@@ -241,12 +241,12 @@ fi ...@@ -241,12 +241,12 @@ fi
# remove-older-than # remove-older-than
if [ "$keep" != "yes" ]; then if [ "$keep" != "yes" ]; then
if [ "$duplicity_major" -ge 0 -a "$duplicity_minor" -ge 4 -a "$duplicity_sub" -ge 4 ]; 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 if [ ! $test ]; then
export PASSPHRASE=$password export PASSPHRASE=$password
output=`nice -n $nicelevel \ output=`nice -n $nicelevel \
su -c \ 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=$? exit_code=$?
if [ $exit_code -eq 0 ]; then if [ $exit_code -eq 0 ]; then
debug $output debug $output
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment