Actually remove that last backup
This commit is contained in:
parent
85a3da7b6c
commit
a9b6c9a88b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user