X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC_checkArchiveConsistency;h=7b7c1f8cf7c55fbf4fd3dfdd84c17cf7b5d474f3;hp=eb202e121e99f97a97fc6609dc316f4d834b70b9;hb=ffbf3b45b24613d268bbb64a901131612b86b4d6;hpb=8028b56bcfb9f58351c7bb815f05107c76dea9be diff --git a/bin/BackupPC_checkArchiveConsistency b/bin/BackupPC_checkArchiveConsistency index eb202e1..7b7c1f8 100755 --- a/bin/BackupPC_checkArchiveConsistency +++ b/bin/BackupPC_checkArchiveConsistency @@ -12,7 +12,7 @@ my %Conf = $bpc->Conf(); my $dsn = $Conf{SearchDSN} || die "need searchdsn in config.pl\n"; my $user = $Conf{SearchUser} || ''; my $dbh = DBI->connect($dsn, $user, "", { raiseerror => 1, autocommit => 0 }); -my $tar_dir = $Conf{InstallDir}.'/'.$Conf{GzipTempDir}; +my $tar_dir = $Conf{GzipTempDir}; my $dvd_nr = $ARGV[0]; if (!defined($dvd_nr)) { @@ -33,7 +33,7 @@ my $sth = $dbh->prepare($sql); $sth->execute($dvd_nr); while (my $row = $sth->fetchrow_hashref()) { my $host_share = $row->{share}; - $host_share =~ s/(.*?):(.*)/$1_$2_/gi; + $host_share =~ s/(.*?):\/?(.*)/$1_$2_/gi; my $filename = $tar_dir."/".$host_share . $row->{num}.".tar.gz"; my (undef, undef, undef, undef, undef, undef, undef, $fs_size, undef, undef, undef, undef, undef) = stat($filename); print "checking $filename...";