don't unmount the daily backup drive if only the backup check is running (#2271)

This commit is contained in:
Simon L 2022-04-07 19:08:12 +02:00 committed by GitHub
parent 4d9a782b94
commit 3cd8795fb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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