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..."
|
echo "Rotating snapshots of $SERVER..."
|
||||||
|
|
||||||
# Das hoechste Snapshot abloeschen
|
# Das hoechste Snapshot abloeschen
|
||||||
if [ -d $DATA_PATH/"$SERVER"/daily.7 ] ; then
|
if [ -d $DATA_PATH/"$SERVER"/daily.12 ] ; then
|
||||||
rm -rf $DATA_PATH/"$SERVER"/daily.7
|
rm -rf $DATA_PATH/"$SERVER"/daily.12
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Alle anderen Snapshots eine Nummer nach oben verschieben
|
# Alle anderen Snapshots eine Nummer nach oben verschieben
|
||||||
|
@ -154,8 +154,6 @@ rotate () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Finished rotating backups of $SERVER..."
|
echo "Finished rotating backups of $SERVER..."
|
||||||
healthchecksFinish "$STATUSCODE"
|
|
||||||
notify error "$STATUSCODE"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
backup () {
|
backup () {
|
||||||
|
|
Loading…
Reference in a new issue