Actually remove that last backup

This commit is contained in:
Salt 2020-05-03 06:42:12 -05:00
parent 85a3da7b6c
commit a9b6c9a88b

View File

@ -33,6 +33,7 @@ if (( currentbackupcount >= retention )); then
lastbackup="$(find "$OUTDIR" -name \*.zip 2>/dev/null | sort | head -n 1)" lastbackup="$(find "$OUTDIR" -name \*.zip 2>/dev/null | sort | head -n 1)"
if [ -f "$lastbackup" ]; then if [ -f "$lastbackup" ]; then
log "Removing old backup: $lastbackup" log "Removing old backup: $lastbackup"
rm "$lastbackup"
fi fi
fi fi
# WE MAKE BACKUP NOW SERGEI # WE MAKE BACKUP NOW SERGEI