Skip to content
Snippets Groups Projects
Verified Commit f2a4799b authored by David Beniamine's avatar David Beniamine
Browse files

Refactor

parent 9fda3e62
Branches
No related tags found
No related merge requests found
...@@ -17,11 +17,10 @@ retrie_on_fail(){ ...@@ -17,11 +17,10 @@ retrie_on_fail(){
if [ $1 -ne 0 ]; then if [ $1 -ne 0 ]; then
keep=$(($BK_KEEP_FULL-1)) keep=$(($BK_KEEP_FULL-1))
if [ $keep -gt 0 ]; then if [ $keep -gt 0 ]; then
run_duplicity remove-all-inc-of-but-n-full $(($BK_KEEP_FULL-1)) --force run_duplicity remove-all-inc-of-but-n-full $keep --force
else else
cat <<EOF | lftp $host cat <<EOF | lftp $host
user $user $ftppass user $user $ftppass
rm -rf $remotedir/*-inc* rm -rf $remotedir/*-inc*
rm -rf $remotedir/*-new-signatures* rm -rf $remotedir/*-new-signatures*
EOF EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment