/[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 265 by dpavlin, Tue Dec 13 00:10:48 2005 UTC revision 266 by dpavlin, Tue Dec 13 00:37:29 2005 UTC
# Line 171  sub tar_check($$$$) { Line 171  sub tar_check($$$$) {
171                  my $path = "$tar_dir/$tarfilename";                  my $path = "$tar_dir/$tarfilename";
172                  my $md5_path = $path;                  my $md5_path = $path;
173                  $md5_path =~ s/\.tar\.gz$/.md5/ || die "can't create md5 filename from $md5_path";                  $md5_path =~ s/\.tar\.gz$/.md5/ || die "can't create md5 filename from $md5_path";
174                  if (! -e $md5_path) {                  if (! -e $md5_path || -z $md5_path) {
175                          print ", creating md5";                          print ", creating md5";
176                          system( $bin->{md5sum} . " $path > $md5_path") == 0 or die "can't create md5 $path: $!";                          system( $bin->{md5sum} . " $path > $md5_path") == 0 or die "can't create md5 $path: $!";
177                  }                  }
# Line 291  while (my $row = $sth->fetchrow_hashref) Line 291  while (my $row = $sth->fetchrow_hashref)
291    
292          print "# size: $size backup.size: ", $row->{inc_size},"\n" if ($opt{d});          print "# size: $size backup.size: ", $row->{inc_size},"\n" if ($opt{d});
293    
294          if ( $row->{'inc_size'} != -1 && $size != -1 && $row->{'inc_size'} == $size) {          if ( $row->{'inc_size'} != -1 && $size != -1 && $row->{'inc_size'} >= $size) {
295                  if ($check) {                  if ($check) {
296                          tar_check($row->{'host'}, $row->{'share'}, $row->{'num'}, $tar_file) && next;                          tar_check($row->{'host'}, $row->{'share'}, $row->{'num'}, $tar_file) && next;
297                  } else {                  } else {

Legend:
Removed from v.265  
changed lines
  Added in v.266

  ViewVC Help
Powered by ViewVC 1.1.26