1 |
diff -ruN e-smith-backup-2.4.0.old/root/etc/e-smith/events/actions/workstation-backup-dar e-smith-backup-2.4.0/root/etc/e-smith/events/actions/workstation-backup-dar |
2 |
--- e-smith-backup-2.4.0.old/root/etc/e-smith/events/actions/workstation-backup-dar 2013-07-14 13:50:42.000000000 -0700 |
3 |
+++ e-smith-backup-2.4.0/root/etc/e-smith/events/actions/workstation-backup-dar 2013-07-14 13:56:10.000000000 -0700 |
4 |
@@ -282,12 +282,15 @@ |
5 |
$mntbkdir = $mntdir . '/' . $id; |
6 |
|
7 |
my $catalog = "$mntbkdir/dar-catalog"; |
8 |
-unless ( -e $catalog) |
9 |
+unless ( -e $catalog) # Create an empty catalog if none found |
10 |
{ |
11 |
system("/usr/bin/dar_manager", "-Q", "-C", "$catalog") == 0 |
12 |
or ldie("Unable to create dar_manager catalog.\n"); |
13 |
} |
14 |
|
15 |
+# sleep added to ensure the creation of a valid catalog |
16 |
+sleep 1; |
17 |
+ |
18 |
# find available backups for the server |
19 |
|
20 |
find { wanted => \&$setbackuplist, untaint => 1 }, $mntbkdir ; |