X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=bin%2FBackupPC_compressPool;h=8a3523cc612b6d313d5a8fd1dc2eb9ffb590e655;hb=d6361346073caa11ff478a8b1b48fa0fdcecf224;hp=f4c97a9f5e043fb81a3729139f0f9d9940cf2ab4;hpb=2c14784ad71874ec850d189060fe63d6eb9eba95;p=BackupPC.git diff --git a/bin/BackupPC_compressPool b/bin/BackupPC_compressPool index f4c97a9..8a3523c 100755 --- a/bin/BackupPC_compressPool +++ b/bin/BackupPC_compressPool @@ -31,7 +31,7 @@ # Craig Barratt # # COPYRIGHT -# Copyright (C) 2001-2003 Craig Barratt +# Copyright (C) 2001-2007 Craig Barratt # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -49,7 +49,7 @@ # #======================================================================== # -# Version 2.1.0_CVS, released 8 Feb 2004. +# Version 3.1.0beta0, released 3 Sep 2007. # # See http://backuppc.sourceforge.net. # @@ -69,6 +69,7 @@ use BackupPC::FileZIO; die("BackupPC::Lib->new failed\n") if ( !(my $bpc = BackupPC::Lib->new) ); $bpc->ChildInit(); my $TopDir = $bpc->TopDir(); +my $LogDir = $bpc->LogDir(); my $BinDir = $bpc->BinDir(); my %Conf = $bpc->Conf(); my $PoolDir = "$TopDir/pool"; @@ -399,8 +400,8 @@ sub compressHostFiles if ( !defined($host) ) { for ( my $i = 0 ; ; $i++ ) { - last if ( !-f "$TopDir/log/LOG.$i" ); - push(@Files, "$TopDir/log/LOG.$i"); + last if ( !-f "$LogDir/LOG.$i" ); + push(@Files, "$LogDir/LOG.$i"); } } else { @Backups = $bpc->BackupInfoRead($host);