--- trunk/bin/BackupPC_incPartsUpdate 2005/10/12 11:15:18 182 +++ trunk/bin/BackupPC_incPartsUpdate 2005/10/13 15:09:55 192 @@ -63,12 +63,13 @@ 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 } ); @@ -82,6 +83,12 @@ 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();