From 3cd8795fb3192f9993097aa42bce7784a66539e5 Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 7 Apr 2022 19:08:12 +0200 Subject: [PATCH] don't unmount the daily backup drive if only the backup check is running (#2271) --- not-supported/borgbackup.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/not-supported/borgbackup.sh b/not-supported/borgbackup.sh index 9d6f5e75..8b1bff0c 100644 --- a/not-supported/borgbackup.sh +++ b/not-supported/borgbackup.sh @@ -680,10 +680,13 @@ fi show_drive_usage # Unmount the backup drive -inform_user "$ICyan" "Unmounting the backup drive..." -if mountpoint -q "$BACKUP_MOUNTPOINT" && ! umount "$BACKUP_MOUNTPOINT" +if [ -z "$SKIP_DAILY_BACKUP_CREATION" ] then - send_error_mail "Could not unmount the backup drive!" "Backup integrity check" + inform_user "$ICyan" "Unmounting the backup drive..." + if mountpoint -q "$BACKUP_MOUNTPOINT" && ! umount "$BACKUP_MOUNTPOINT" + then + send_error_mail "Could not unmount the backup drive!" "Backup integrity check" + fi fi # Resetting the integrity Check