1
0

support CLEAR_BKFILE envvar to remove bkfile

This commit is contained in:
michele
2014-03-28 00:33:48 +01:00
parent 7c383751e1
commit b90e318c7f

View File

@ -18,6 +18,7 @@ usage () {
echo
echo "Optional envvars:"
echo "UPLOAD_PATH upload generated backup to this path. scp:// or rsync://"
echo "CLEAR_BKFILE remove local backup file at the end of the process."
}
failmsg () {
@ -115,3 +116,10 @@ then
fi
fi
# remove backup file if requested
if [ "x$CLEAR_BKFILE" = x ]
then
rm -f $bkfile
fi
if