+ warn "$0: host $host doesn't have any backups... skipping\n";
+ next;
+ }
+
+ $sth->execute( $host );
+ if ( $sth->rows == 0 ) {
+ warn "no backups to archive on $host\n";
+ push @HostList, $host;
+ push @BackupList, 0; # fake, but will make full-text update
+ }
+
+ while ( my $row = $sth->fetchrow_hashref ) {
+ warn "+ ", $row->{host}, " ", $row->{num}, "\n";
+ push(@HostList, $host);
+ push(@BackupList, $row->{num});