1 |
wellsi |
1.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 |
2 |
wellsi |
1.2 |
--- 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 2014-01-03 17:19:51.000000000 -0800 |
4 |
|
|
@@ -213,7 +213,21 @@ |
5 |
|
|
if ($incnum == 0) |
6 |
wellsi |
1.1 |
{ |
7 |
|
|
$setnum %= $setsmax; |
8 |
wellsi |
1.2 |
- ++$setnum; |
9 |
|
|
+ $setnum++; |
10 |
|
|
+ |
11 |
wellsi |
1.1 |
+ # Remove set0 if reached $setsmax as set0 is deprecated and no longer valid. |
12 |
wellsi |
1.2 |
+ if ($setnum == $setsmax && -d "$mntdir/$id/set0") |
13 |
wellsi |
1.1 |
+ { |
14 |
wellsi |
1.2 |
+ # 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 |
wellsi |
1.1 |
+ } |
24 |
|
|
} |
25 |
|
|
|
26 |
|
|
$report .= sprintf("Using set number %d of %d\n", $setnum, $setsmax); |