X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC_compressPool;h=6d03bfe4a4ddc4adbd1c7d34e1f5288b6b44ebe9;hp=4f22a276118a4ce065052dfcf72ddfe1977d2bd6;hb=5b3e6091d542c2e7445d5dd511cdf6e20aec8b8d;hpb=8d7768574bb328c669a44c6efbff01e8a7e93d7e diff --git a/bin/BackupPC_compressPool b/bin/BackupPC_compressPool index 4f22a27..6d03bfe 100755 --- a/bin/BackupPC_compressPool +++ b/bin/BackupPC_compressPool @@ -1,4 +1,4 @@ -#!/bin/perl -T +#!/bin/perl #============================================================= -*-perl-*- # # BackupPC_compressPool: Compress existing pool @@ -31,7 +31,7 @@ # Craig Barratt # # COPYRIGHT -# Copyright (C) 2001 Craig Barratt +# Copyright (C) 2001-2003 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.0.0, released 14 Jun 2003. +# Version 3.0.0alpha, released 23 Jan 2006. # # 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);