X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC_updatedb;h=d28096ce40fa32b4868537eb3816594d0980ed20;hp=e72ba3dd7a87d6246eb135cd0762ac32a77464cc;hb=5e96c5116256a42afd5b574a5c575560a1fe5df6;hpb=4bebd36661ae62a8bae93097d00a8e43247a5064 diff --git a/bin/BackupPC_updatedb b/bin/BackupPC_updatedb index e72ba3d..d28096c 100755 --- a/bin/BackupPC_updatedb +++ b/bin/BackupPC_updatedb @@ -1,8 +1,7 @@ #!/usr/bin/perl use strict; -#use lib "/data/backuppc/lib"; -use lib "/usr/share/backuppc/lib"; +use lib "/usr/local/BackupPC/lib"; use DBI; use BackupPC::Lib; @@ -552,7 +551,8 @@ warn "XXXX ",dump(@backups); ); print $share_header unless ($opt{q}); - my $files = BackupPC::View->new($bpc, $hostname, \@backups, 1); + my $files = BackupPC::View->new($bpc, $hostname, \@backups, { only_first => 1 }); + foreach my $share ($files->shareList($backupNum)) { my $t = time();