From c05662dcde9dca241bd046dd374580c7e7d9bcc7 Mon Sep 17 00:00:00 2001 From: Tobias Strobel Date: Mon, 13 Sep 2021 10:37:08 +0200 Subject: [PATCH] Fix external-backup.sh bugs --- helios/external-backup.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/helios/external-backup.sh b/helios/external-backup.sh index bf7ea80..5193d66 100644 --- a/helios/external-backup.sh +++ b/helios/external-backup.sh @@ -123,8 +123,8 @@ rotate () { echo "Rotating snapshots of $SERVER..." # Das hoechste Snapshot abloeschen - if [ -d $DATA_PATH/"$SERVER"/daily.7 ] ; then - rm -rf $DATA_PATH/"$SERVER"/daily.7 + if [ -d $DATA_PATH/"$SERVER"/daily.12 ] ; then + rm -rf $DATA_PATH/"$SERVER"/daily.12 fi # Alle anderen Snapshots eine Nummer nach oben verschieben @@ -154,8 +154,6 @@ rotate () { fi echo "Finished rotating backups of $SERVER..." - healthchecksFinish "$STATUSCODE" - notify error "$STATUSCODE" } backup () {