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

Reactivate auto clean

parent 8129436f
No related branches found
No related tags found
No related merge requests found
...@@ -15,13 +15,8 @@ exit_on_fail(){ ...@@ -15,13 +15,8 @@ exit_on_fail(){
retrie_on_fail(){ retrie_on_fail(){
if [ $1 -ne 0 ]; then if [ $1 -ne 0 ]; then
cat <<EOF | lftp $host
user $user $ftppass
rm -rf $remotedir
mkdir $remotedir
EOF
backup "cleaned" backup "cleaned"
run_duplicity remove-all-inc-of-but-n-full 1 --force
leave $? leave $?
fi fi
} }
...@@ -65,4 +60,6 @@ backup(){ ...@@ -65,4 +60,6 @@ backup(){
echo "All Done" echo "All Done"
} }
backup backup
leave $? ret=$?
retrie_on_fail $ret
leave $ret
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment