diff --git a/check_size_consistency.pl b/check_size_consistency.pl index ddc32c4..e17f8b4 100644 --- a/check_size_consistency.pl +++ b/check_size_consistency.pl @@ -2,6 +2,7 @@ use lib "/usr/share/BackupPC/lib"; use BackupPC::Lib; use BackupPC::CGI::Lib; +use POSIX; use JSON; # We need to switch to backuppc UID/GID @@ -11,7 +12,6 @@ my (undef,undef,$bkpuid,$bkpgid) = getpwnam('backuppc'); setuid($bkpuid) if ($uid ne $bkpuid); setgid($bkpgid) if ($gid ne $bkpgid); -# Precise host my $host = $ARGV[0]; my $bpc = BackupPC::Lib->new(); @@ -57,7 +57,6 @@ $lastXferErrors = $backups[@backups-1]{xferErrs} if ( @backups ); $maxErrors = $conf->{MaxXferError} if (defined $conf->{MaxXferError}); print<<"EOF"; -Usage: $0 Full Size of last backup : $fullSize EOF