1 |
--- e-smith-backup-2.0.0/root/etc/e-smith/db/configuration/defaults/backupwk/Compression.gzip 2008-10-07 11:34:31.000000000 -0600 |
2 |
+++ e-smith-backup-2.0.0/root/etc/e-smith/db/configuration/defaults/backupwk/Compression 2008-10-27 08:01:58.000000000 -0600 |
3 |
@@ -1 +1 @@ |
4 |
-4 |
5 |
+6 |
6 |
--- e-smith-backup-2.0.0/root/etc/e-smith/db/configuration/defaults/backupwk/CompressionProg.gzip 2008-10-27 08:05:43.000000000 -0600 |
7 |
+++ e-smith-backup-2.0.0/root/etc/e-smith/db/configuration/defaults/backupwk/CompressionProg 2008-10-27 08:05:51.000000000 -0600 |
8 |
@@ -0,0 +1 @@ |
9 |
+gzip |
10 |
--- e-smith-backup-2.0.0/root/etc/e-smith/templates/etc/dar/DailyBackup.dcf/10compression.gzip 2008-10-07 11:34:31.000000000 -0600 |
11 |
+++ e-smith-backup-2.0.0/root/etc/e-smith/templates/etc/dar/DailyBackup.dcf/10compression 2008-10-27 08:12:33.000000000 -0600 |
12 |
@@ -1,3 +1,6 @@ |
13 |
{ |
14 |
-($backupwk{Compression} || '0') eq '0' ? "#Compression off\n" : "--bzip2=$backupwk{Compression}\n" |
15 |
-} |
16 |
\ No newline at end of file |
17 |
+ $level = $backupwk{Compression} || 0; |
18 |
+ $prog = $backupwk{CompressionProg} || 'gzip'; |
19 |
+ |
20 |
+ $OUT = ($level eq '0' or $prog eq 'none') ? "#Compression off" : "--$prog=$level" |
21 |
+} |