Fix external-backup.sh bugs
This commit is contained in:
parent
1860bdf6ae
commit
c05662dcde
1 changed files with 2 additions and 4 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue