Delete corrupt backups
This commit is contained in:
parent
1a19740b2e
commit
9c34bd1fb6
1 changed files with 2 additions and 1 deletions
|
@ -405,6 +405,7 @@ clean-up () {
|
||||||
delete-old-backups
|
delete-old-backups
|
||||||
exit 0
|
exit 0
|
||||||
else
|
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"
|
message-players-error "Backup was not saved!" "Please notify an administrator"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -435,4 +436,4 @@ fi
|
||||||
sync
|
sync
|
||||||
END_TIME=$(date +"%s")
|
END_TIME=$(date +"%s")
|
||||||
|
|
||||||
clean-up
|
clean-up
|
||||||
|
|
Loading…
Add table
Reference in a new issue