29 |
# |
# |
30 |
#======================================================================== |
#======================================================================== |
31 |
# |
# |
32 |
# Version 2.1.0, released 20 Jun 2004. |
# Version 2.1.2, released 5 Sep 2005. |
33 |
# |
# |
34 |
# See http://backuppc.sourceforge.net. |
# See http://backuppc.sourceforge.net. |
35 |
# |
# |
139 |
# |
# |
140 |
# Setup file extension for compression and open ArchiveLOG output file |
# Setup file extension for compression and open ArchiveLOG output file |
141 |
# |
# |
142 |
$Conf{CompressLevel} = 0 if ( !BackupPC::FileZIO->compOk ); |
if ( $Conf{CompressLevel} && !BackupPC::FileZIO->compOk ) { |
143 |
|
$stat{hostError} = "Compress::Zlib not found"; |
144 |
|
exit(ArchiveCleanup($client)); |
145 |
|
} |
146 |
my $fileExt = $Conf{CompressLevel} > 0 ? ".z" : ""; |
my $fileExt = $Conf{CompressLevel} > 0 ? ".z" : ""; |
147 |
my $ArchiveLOG = BackupPC::FileZIO->open("$Dir/ArchiveLOG$fileExt", 1, |
my $ArchiveLOG = BackupPC::FileZIO->open("$Dir/ArchiveLOG$fileExt", 1, |
148 |
$Conf{CompressLevel}); |
$Conf{CompressLevel}); |