1
0
Fork 0

Fix external-backup.sh bugs

This commit is contained in:
Tobias Strobel 2021-09-13 10:37:08 +02:00
parent 1860bdf6ae
commit c05662dcde
1 changed files with 2 additions and 4 deletions

View File

@ -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 () {