/[BackupPC]/trunk/bin/BackupPC_burnArchiveCLI
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_burnArchiveCLI

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

revision 372 by iklaric, Mon May 7 11:00:52 2007 UTC revision 373 by iklaric, Mon May 7 13:20:38 2007 UTC
# Line 481  foreach my $copy_nr ( 1 .. $copies ) { Line 481  foreach my $copy_nr ( 1 .. $copies ) {
481                                                  my $host = $p->{host};                                                  my $host = $p->{host};
482                                                  my $share = $p->{share};                                                  my $share = $p->{share};
483                                                  my $dump = $p->{num};                                                  my $dump = $p->{num};
484                                                  my $otherUser = "backuppc-agi";                                                  my $currUser = getlogin();
485                                                    my $otherUser = "";
486                                                  my $cmd = "sudo -u $otherUser ".$tarIncCreate. " -h $host -s $share -n $dump";                                                  if ($currUser eq "agi") {
487                                                  print "$cmd ";                                                          $otherUser = "backuppc-agi";
488                                                  if (system($cmd) != 0) {                                                  } elsif ($currUser eq "qc") {
489                                                          print " FAILED.\n";                                                          $otherUser = "backuppc-qc";
490                                                  } else {                                                  }
491                                                          print " done.\n";                                                  if ($otherUser ne "") {
492                                                            my $cmd = "sudo -u $otherUser ".$tarIncCreate. " -h $host -s $share -n $dump";
493                                                            print "$cmd ";
494                                                            if (system($cmd) != 0) {
495                                                                    print " FAILED.\n";
496                                                            } else {
497                                                                    print " done.\n";
498                                                  }                                                  }
499                                            }      
500                                          }                                          }
501    
502                                          skip "can't find increment $rel_path, recreateing obviously did not work: $!" unless (-r "$tar_dir/$rel_path");                                          skip "can't find increment $rel_path, recreateing obviously did not work: $!" unless (-r "$tar_dir/$rel_path");

Legend:
Removed from v.372  
changed lines
  Added in v.373

  ViewVC Help
Powered by ViewVC 1.1.26