1
0

do not remove local bk if upload failed

This commit is contained in:
michele
2014-03-28 00:43:35 +01:00
parent 7443e3bd11
commit 1987656b0e
2 changed files with 13 additions and 7 deletions

View File

@ -114,11 +114,11 @@ then
echo "Expecting rsync://.. or scp://.."
exit 1
fi
fi
# remove backup file if requested
if [ "x$CLEAR_BKFILE" != x ]
then
rm -f $bkfile
# remove local backup if requested & upload was successful
if [ $? -eq 0 -a "x$CLEAR_BKFILE" != x ]
then
# remove backup file if requested
rm -f $bkfile
fi
fi