--- trunk/bin/BackupPC_updatedb 2005/08/19 15:27:27 38 +++ trunk/bin/BackupPC_updatedb 2005/08/20 11:24:55 44 @@ -22,9 +22,9 @@ } elsif ($pidfile->pid ne $$) { $pidfile->remove; $pidfile = new File::Pid; - $pidfile->write; - print STDERR "$0 using pid ",$pidfile->pid," file ",$pidfile->file,"\n"; } +$pidfile->write; +print STDERR "$0 using pid ",$pidfile->pid," file ",$pidfile->file,"\n"; my $t_fmt = '%Y-%m-%d %H:%M:%S'; @@ -40,14 +40,15 @@ my %opt; -if ( !getopts("cdm:v", \%opt ) ) { +if ( !getopts("cdm:v:", \%opt ) ) { print STDERR < $opt{m}); my $backupNum = $backup->{'num'}; my @backupShares = (); - print $hosts->{$host_key}->{'host'}, "\t#$backupNum\n"; + print $hosts->{$host_key}->{'host'}, + "\t#$backupNum\t", $backup->{type} || '?', " ", + $backup->{nFilesNew} || '?', "/", $backup->{nFiles} || '?', + " files\n"; $sth->{backups_broj}->execute($hostID, $backupNum); my ($broj) = $sth->{backups_broj}->fetchrow_array(); @@ -301,7 +306,7 @@ my ($bpc, $hostname, $files, $backupNum, $share, $dir, $shareID) = @_; - print STDERR "recurse($hostname,$backupNum,$share,$dir,$shareID)\n" if ($debug >= 1); + print STDERR "\nrecurse($hostname,$backupNum,$share,$dir,$shareID)\n" if ($debug >= 1); my ($nr_files, $new_files, $nr_dirs, $new_dirs) = (0,0,0,0);