Delete corrupt backups

This commit is contained in:
Nicolas Chan 2021-03-06 14:55:47 -08:00
parent 1a19740b2e
commit 9c34bd1fb6

View file

@ -405,6 +405,7 @@ clean-up () {
delete-old-backups
exit 0
else
rm "$ARCHIVE_PATH" # Delete failed backup so that we don't have corrupt backups taking up space
message-players-error "Backup was not saved!" "Please notify an administrator"
exit 1
fi
@ -435,4 +436,4 @@ fi
sync
END_TIME=$(date +"%s")
clean-up
clean-up