-foreach ( @HostFilter ) {
- my ($host,$num) = split(/:/,$_,2);
- if ( !defined($Hosts->{$host}) ) {
- print(STDERR "$0: host $host doesn't exist... quitting\n");
- exit(1);
- }
- my @backups = $bpc->BackupInfoRead($host);
- if ( !@backups ) {
- warn "$0: host $host doesn't have any backups... skipping\n";
- next;
- }
-
- my $all_backup_numbers;
- $all_backup_numbers->{ $_->{num} }++ foreach @backups;
-
- $sth->execute( $host );
- while ( my $row = $sth->fetchrow_hashref ) {
- warn "# row ",dump($row) if $debug;
- $all_backup_numbers->{ $row->{num} } =
- $row->{inc_deleted} ? 0 :
- $row->{size} == 0 ? 0 :
- $row->{inc_size} > 0 ? 0 :
- $row->{size} > 0 ? 1 :
- 0;
- }