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"; |
485 |
my $cmd = $tarIncCreate. " -h $host -s $share -n $dump"; |
|
486 |
|
my $cmd = "sudo -u $otherUser ".$tarIncCreate. " -h $host -s $share -n $dump"; |
487 |
print "$cmd "; |
print "$cmd "; |
488 |
if (system($cmd) != 0) { |
if (system($cmd) != 0) { |
489 |
print " FAILED.\n"; |
print " FAILED.\n"; |
532 |
|
|
533 |
} else { |
} else { |
534 |
$iso_size = (stat($iso_file))[7]; |
$iso_size = (stat($iso_file))[7]; |
535 |
print "ISO $iso_file allready exists [$iso_size bytes]\n"; |
print "ISO $iso_file already exists [$iso_size bytes]\n"; |
536 |
} |
} |
537 |
|
|
538 |
print "\nREADY TO BURN MEDIA $disk_name copy $copy_nr\n\nPlease insert blank media and press ENTER\n\n"; |
print "\nREADY TO BURN MEDIA $disk_name copy $copy_nr\n\nPlease insert blank media and press ENTER\n\n"; |
539 |
|
|
|
die("debugging only!"); |
|
|
|
|
540 |
system($bin->{'eject'}.' '.$eject_opts) == 0 or skip "can't run eject: $?"; |
system($bin->{'eject'}.' '.$eject_opts) == 0 or skip "can't run eject: $?"; |
541 |
|
|
542 |
my $wait = <STDIN>; |
my $wait = <STDIN>; |