@@ -19,7 +19,6 @@ debug_mode
19
19
root_check
20
20
21
21
# Variables
22
- LVM_MOUNT=" /system"
23
22
START_TIME=$( date +%s)
24
23
CURRENT_DATE=$( date --date @" $START_TIME " +" %Y%m%d_%H%M%S" )
25
24
CURRENT_DATE_READABLE=$( date --date @" $START_TIME " +" %d.%m.%Y - %H:%M:%S" )
@@ -48,14 +47,17 @@ show_drive_usage() {
48
47
send_error_mail () {
49
48
if [ -d " $BACKUP_TARGET_DIRECTORY " ]
50
49
then
51
- inform_user " $ICyan " " Unmounting the off-shore backup drive..."
52
- umount " $BACKUP_MOUNTPOINT "
50
+ if [ -z " $DO_NOT_UMOUNT_BACKUP_DRIVES " ]
51
+ then
52
+ inform_user " $ICyan " " Unmounting the offshore backup drive..."
53
+ umount " $BACKUP_MOUNTPOINT "
54
+ fi
53
55
fi
54
56
if [ -d " $BACKUP_SOURCE_DIRECTORY " ]
55
57
then
56
- if [ -z " $DO_NOT_UMOUNT_DAILY_BACKUP_DRIVE " ]
58
+ if [ -z " $DO_NOT_UMOUNT_BACKUP_DRIVES " ]
57
59
then
58
- inform_user " $ICyan " " Unmounting the backup drive..."
60
+ inform_user " $ICyan " " Unmounting the daily backup drive..."
59
61
umount " $BACKUP_SOURCE_MOUNTPOINT "
60
62
fi
61
63
fi
124
126
# Check if pending snapshot is existing and cancel the backup in this case.
125
127
if does_snapshot_exist " NcVM-snapshot-pending"
126
128
then
127
- DO_NOT_UMOUNT_DAILY_BACKUP_DRIVE =1
129
+ DO_NOT_UMOUNT_BACKUP_DRIVES =1
128
130
msg_box " The snapshot pending does exist. Can currently not proceed.
129
131
Please try again later.\n
130
132
If you are sure that no update or backup is currently running, you can fix this by rebooting your server."
193
195
# Check if pending snapshot is existing and cancel the backup in this case.
194
196
if does_snapshot_exist " NcVM-snapshot-pending"
195
197
then
196
- DO_NOT_UMOUNT_DAILY_BACKUP_DRIVE =1
198
+ DO_NOT_UMOUNT_BACKUP_DRIVES =1
197
199
msg_box " The snapshot pending does exist. Can currently not proceed.
198
200
Please try again later.\n
199
201
If you are sure that no update or backup is currently running, you can fix this by rebooting your server."
0 commit comments