1 |
diff -ruN e-smith-backup-2.2.0.old/root/etc/e-smith/events/actions/workstation-backup-dar e-smith-backup-2.2.0/root/etc/e-smith/events/actions/workstation-backup-dar |
diff -ruN e-smith-backup-2.2.0.old/root/etc/e-smith/events/actions/workstation-backup-dar e-smith-backup-2.2.0/root/etc/e-smith/events/actions/workstation-backup-dar |
2 |
--- e-smith-backup-2.2.0.old/root/etc/e-smith/events/actions/workstation-backup-dar 2013-12-11 22:22:38.000000000 -0800 |
--- e-smith-backup-2.2.0.old/root/etc/e-smith/events/actions/workstation-backup-dar 2014-01-03 17:13:10.000000000 -0800 |
3 |
+++ e-smith-backup-2.2.0/root/etc/e-smith/events/actions/workstation-backup-dar 2013-12-11 22:30:12.000000000 -0800 |
+++ e-smith-backup-2.2.0/root/etc/e-smith/events/actions/workstation-backup-dar 2014-01-03 17:19:51.000000000 -0800 |
4 |
@@ -214,6 +214,11 @@ |
@@ -213,7 +213,21 @@ |
5 |
|
if ($incnum == 0) |
6 |
{ |
{ |
7 |
$setnum %= $setsmax; |
$setnum %= $setsmax; |
8 |
++$setnum; |
- ++$setnum; |
9 |
|
+ $setnum++; |
10 |
|
+ |
11 |
+ # Remove set0 if reached $setsmax as set0 is deprecated and no longer valid. |
+ # Remove set0 if reached $setsmax as set0 is deprecated and no longer valid. |
12 |
+ if ($setnum == $setsmax) |
+ if ($setnum == $setsmax && -d "$mntdir/$id/set0") |
13 |
+ { |
+ { |
14 |
+ &remove_tree ("$mntdir/$id/set0"); |
+ # if $setsmax already exists, just delete set0 |
15 |
|
+ if (-d "$mntdir/$id/set$setsmax") |
16 |
|
+ { |
17 |
|
+ &remove_tree ("$mntdir/$id/set0"); |
18 |
|
+ } |
19 |
|
+ else # move set0 to $setsmax, it will be deleted after a successful backup |
20 |
|
+ { |
21 |
|
+ move("$mntdir/$id/set0", "$mntdir/$id/set$setsmax"); |
22 |
|
+ } |
23 |
+ } |
+ } |
24 |
} |
} |
25 |
|
|