14 |
-ldie("Error while creating $tmpdir/$id : $@. Maybe insufficient rights on backup directory.\n") |
-ldie("Error while creating $tmpdir/$id : $@. Maybe insufficient rights on backup directory.\n") |
15 |
- if $@; |
- if $@; |
16 |
+ |
+ |
17 |
+&remove_tree ($tmpdir); |
+&remove_tree ("$tmpdir/$id"); |
18 |
+&create_tree ("$tmpdir/$id"); |
+&create_tree ("$tmpdir/$id"); |
19 |
|
|
20 |
# we know right backup directory is in line and we can write on it. |
# we know right backup directory is in line and we can write on it. |
54 |
|
|
55 |
-# update dar_manager catalog |
-# update dar_manager catalog |
56 |
+# Remove temporary directory as no longer needed |
+# Remove temporary directory as no longer needed |
57 |
+&remove_tree ($tmpdir); |
+&remove_tree ("$tmpdir/$id"); |
58 |
|
|
59 |
+# update dar_manager catalog |
+# update dar_manager catalog |
60 |
$report .= "Updating catalog\n"; |
$report .= "Updating catalog\n"; |