pre-seed with on disk backups
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 16 Feb 2011 17:25:58 +0000 (18:25 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 16 Feb 2011 17:25:58 +0000 (18:25 +0100)
lib/BackupPC/Search.pm

index a6f01ff..7f75add 100644 (file)
@@ -371,6 +371,8 @@ sub host_backup_nums {
        # and inc_size < 0 and size > 0 and not inc_deleted
 
        my $all_backup_numbers;
+       # pre-seed with on disk backups
+       $all_backup_numbers->{ $_->{num} }++ foreach $bpc->BackupInfoRead($host);
 
        while( my $row = $sth->fetchrow_hashref ) {
 warn "# row ",dump $row;