@@ -48,14 +48,17 @@ show_drive_usage() {
48
48
send_error_mail () {
49
49
if [ -d " $BACKUP_TARGET_DIRECTORY " ]
50
50
then
51
- inform_user " $ICyan " " Unmounting the off-shore backup drive..."
52
- umount " $BACKUP_MOUNTPOINT "
51
+ if [ -z " $DO_NOT_UMOUNT_BACKUP_DRIVES " ]
52
+ then
53
+ inform_user " $ICyan " " Unmounting the offshore backup drive..."
54
+ umount " $BACKUP_MOUNTPOINT "
55
+ fi
53
56
fi
54
57
if [ -d " $BACKUP_SOURCE_DIRECTORY " ]
55
58
then
56
- if [ -z " $DO_NOT_UMOUNT_DAILY_BACKUP_DRIVE " ]
59
+ if [ -z " $DO_NOT_UMOUNT_BACKUP_DRIVES " ]
57
60
then
58
- inform_user " $ICyan " " Unmounting the backup drive..."
61
+ inform_user " $ICyan " " Unmounting the daily backup drive..."
59
62
umount " $BACKUP_SOURCE_MOUNTPOINT "
60
63
fi
61
64
fi
124
127
# Check if pending snapshot is existing and cancel the backup in this case.
125
128
if does_snapshot_exist " NcVM-snapshot-pending"
126
129
then
127
- DO_NOT_UMOUNT_DAILY_BACKUP_DRIVE =1
130
+ DO_NOT_UMOUNT_BACKUP_DRIVES =1
128
131
msg_box " The snapshot pending does exist. Can currently not proceed.
129
132
Please try again later.\n
130
133
If you are sure that no update or backup is currently running, you can fix this by rebooting your server."
193
196
# Check if pending snapshot is existing and cancel the backup in this case.
194
197
if does_snapshot_exist " NcVM-snapshot-pending"
195
198
then
196
- DO_NOT_UMOUNT_DAILY_BACKUP_DRIVE =1
199
+ DO_NOT_UMOUNT_BACKUP_DRIVES =1
197
200
msg_box " The snapshot pending does exist. Can currently not proceed.
198
201
Please try again later.\n
199
202
If you are sure that no update or backup is currently running, you can fix this by rebooting your server."
0 commit comments