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 |
# |
# |
186 |
# |
# |
187 |
# Setup file extension for compression and open RestoreLOG output file |
# Setup file extension for compression and open RestoreLOG output file |
188 |
# |
# |
189 |
$Conf{CompressLevel} = 0 if ( !BackupPC::FileZIO->compOk ); |
if ( $Conf{CompressLevel} && !BackupPC::FileZIO->compOk ) { |
190 |
|
$stat{hostError} = "Compress:Zlib not found"; |
191 |
|
exit(RestoreCleanup($client)); |
192 |
|
} |
193 |
my $fileExt = $Conf{CompressLevel} > 0 ? ".z" : ""; |
my $fileExt = $Conf{CompressLevel} > 0 ? ".z" : ""; |
194 |
my $RestoreLOG = BackupPC::FileZIO->open("$Dir/RestoreLOG$fileExt", 1, |
my $RestoreLOG = BackupPC::FileZIO->open("$Dir/RestoreLOG$fileExt", 1, |
195 |
$Conf{CompressLevel}); |
$Conf{CompressLevel}); |