/[BackupPC]/trunk/bin/BackupPC_incPartsUpdate
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/bin/BackupPC_incPartsUpdate

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 323 by dpavlin, Tue Jan 31 11:11:37 2006 UTC revision 371 by iklaric, Mon May 7 08:48:47 2007 UTC
# Line 146  sub backup_inc_deleted($) { Line 146  sub backup_inc_deleted($) {
146          my $backup_id = shift;          my $backup_id = shift;
147          my $sth_inc_deleted = $dbh->prepare(qq{          my $sth_inc_deleted = $dbh->prepare(qq{
148                  update backups set                  update backups set
149                          inc_deleted = true,                          inc_deleted = true
                         parts = 0  
150                  where id = ?                  where id = ?
151          });          });
152          $sth_inc_deleted->execute($backup_id);          $sth_inc_deleted->execute($backup_id);
# Line 419  while (my $row = $sth->fetchrow_hashref) Line 418  while (my $row = $sth->fetchrow_hashref)
418          # this will return -1 if file doesn't exist          # this will return -1 if file doesn't exist
419          my $size = BackupPC::SearchLib::get_tgz_size_by_name($tar_file);          my $size = BackupPC::SearchLib::get_tgz_size_by_name($tar_file);
420    
421          print "# size: $size backup.size: ", $row->{inc_size},"\n" if ($opt{d});          print "# host: ".${row->{host}}.", share: ".$row->{'share'}.", backup_num:".$row->{num}." size: $size backup.size: ", $row->{inc_size},"\n" if ($opt{d});
422    
423          if ( $row->{'inc_size'} != -1 && $size != -1 && $row->{'inc_size'} >= $size && $row->{parts} == $row->{backup_parts}) {          if ( $row->{'inc_size'} != -1 && $size != -1 && $row->{'inc_size'} >= $size && $row->{parts} == $row->{backup_parts}) {
424                  if ($check) {                  if ($check) {

Legend:
Removed from v.323  
changed lines
  Added in v.371

  ViewVC Help
Powered by ViewVC 1.1.26