From 3e2a64e6d4b3560bf2a238a6c39598f3b8d4f3a9 Mon Sep 17 00:00:00 2001 From: Simon L Date: Tue, 18 Apr 2023 13:22:10 +0200 Subject: [PATCH] borg - add advices how to proceed if things get wrong Signed-off-by: Simon L --- Containers/borgbackup/backupscript.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Containers/borgbackup/backupscript.sh b/Containers/borgbackup/backupscript.sh index be5ae17d..430b985e 100644 --- a/Containers/borgbackup/backupscript.sh +++ b/Containers/borgbackup/backupscript.sh @@ -139,6 +139,7 @@ if [ "$BORG_MODE" = backup ]; then echo "Deleting the failed backup archive..." borg delete --stats "$BORG_BACKUP_DIRECTORY::$CURRENT_DATE-nextcloud-aio" echo "Backup failed!" + echo "You might want to check the backup integrity via the AIO interface." if [ "$NEW_REPOSITORY" = 1 ]; then echo "Deleting borg.config file so that you can choose a different location for the backup." rm "/nextcloud_aio_volumes/nextcloud_aio_mastercontainer/data/borg.config" @@ -379,6 +380,7 @@ if [ "$BORG_MODE" = "check-repair" ]; then # Perform the check-repair if ! echo YES | borg check -v --repair "$BORG_BACKUP_DIRECTORY"; then echo "Some errors were found while checking and repairing the backup integrity!" + echo "Check the AIO interface for advices on how to proceed now!" exit 1 fi