From 97c74a94a78bcca14d912645639bc3cc08287aea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Konr=C3=A4di?= Date: Wed, 13 Aug 2025 15:15:37 +0200 Subject: [PATCH] Revert "feat: add restic check after forget with prune" This reverts commit 5f2b322e546674126efd9215e5459fb5a44d6eb9. --- backup.sh | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/backup.sh b/backup.sh index a8e0f44..36cadaa 100755 --- a/backup.sh +++ b/backup.sh @@ -48,8 +48,6 @@ else copyErrorLog fi -forgetSuccess=false - if [[ $backupRC == 0 ]] && [ -n "${RESTIC_FORGET_ARGS}" ]; then echo "Forget about old snapshots based on RESTIC_FORGET_ARGS = ${RESTIC_FORGET_ARGS}" restic forget ${RESTIC_FORGET_ARGS} >> ${lastLogfile} 2>&1 @@ -57,28 +55,9 @@ if [[ $backupRC == 0 ]] && [ -n "${RESTIC_FORGET_ARGS}" ]; then logLast "Finished forget at $(date)" if [[ $rc == 0 ]]; then echo "Forget Successful" - forgetSuccess=true else echo "Forget Failed with Status ${rc}" restic unlock - forgetSuccess=false - copyErrorLog - fi -fi - -echo "$RESTIC_FORGET_ARGS" | grep -q prune -wasPruneRC=$? - -if [ "$forgetSuccess" = true ] && [ $wasPruneRC -eq 0 ]; then - echo "Checking repository after forget / prune" - restic check >> ${lastLogfile} 2>&1 - rc=$? - logLast "Finished check at $(date)" - if [ $rc = 0 ]; then - echo "Check Successful" - else - echo "Check Failed with Status ${rc}" - restic unlock copyErrorLog fi fi