borgsynology.sh aktualisiert

This commit is contained in:
2025-05-31 16:45:27 +02:00
parent 030791a8a8
commit a13cb79986

View File

@@ -189,8 +189,10 @@ borg_prune() {
MAJOR=$(echo $BORG_VERSION | cut -d. -f1) MAJOR=$(echo $BORG_VERSION | cut -d. -f1)
MINOR=$(echo $BORG_VERSION | cut -d. -f2) MINOR=$(echo $BORG_VERSION | cut -d. -f2)
if [ "$MAJOR" -gt 1 ] || ([ "$MAJOR" -eq 1 ] && [ "$MINOR" -ge 2 ]); then if [ "$MAJOR" -gt 1 ] || ([ "$MAJOR" -eq 1 ] && [ "$MINOR" -ge 2 ]); then
echo "Borg $BORG_VERSION: führe compact aus" if [ $(date +%w) -eq 0 ]; then
echo "Borg $BORG_VERSION: Führe compact aus, nur Sonntags"
$BORG compact "$BORG_REPO" $BORG compact "$BORG_REPO"
fi
else else
echo "Borg $BORG_VERSION: compact nicht unterstützt, da älter als 1.2" echo "Borg $BORG_VERSION: compact nicht unterstützt, da älter als 1.2"
fi fi