backups.id as backup_id,
hosts.name as host,
shares.name as share,
- backups.num as num
+ backups.num as num,
+ inc_size
from backups
join shares on backups.hostid = shares.hostid
and shares.id = backups.shareid
join hosts on shares.hostid = hosts.id
-where inc_size < 0 and not inc_deleted
+where not inc_deleted
order by backups.date
} );
while (my $row = $sth->fetchrow_hashref) {
my $tar_file = BackupPC::SearchLib::getGzipName($row->{'host'}, $row->{'share'}, $row->{'num'});
+
+ my $size = -1;
+ $size = (stat( "$tar_dir/$tar_file" ))[7] if (-e "$tar_dir/$tar_file");
+
+ next if ($row->{'inc_size'} != -1 && $size != -1 && $row->{'inc_size'} == $size);
+
print curr_time, " ", $row->{'host'}, ":", $row->{'share'}, " #", $row->{'num'}, " -> $tar_file";
my $t = time();