From 9c34bd1fb689505938cd64fc2a78434c69fddb3b Mon Sep 17 00:00:00 2001 From: Nicolas Chan Date: Sat, 6 Mar 2021 14:55:47 -0800 Subject: [PATCH] Delete corrupt backups --- backup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index e1b0619..8d78d56 100755 --- a/backup.sh +++ b/backup.sh @@ -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 \ No newline at end of file +clean-up