projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- added new version of burnArchiveCLI which tries to rebuild missing tars while creat...
[BackupPC.git]
/
bin
/
BackupPC_burnArchiveCLI
diff --git
a/bin/BackupPC_burnArchiveCLI
b/bin/BackupPC_burnArchiveCLI
index
826a87f
..
31b6209
100755
(executable)
--- a/
bin/BackupPC_burnArchiveCLI
+++ b/
bin/BackupPC_burnArchiveCLI
@@
-481,8
+481,9
@@
foreach my $copy_nr ( 1 .. $copies ) {
my $host = $p->{host};
my $share = $p->{share};
my $dump = $p->{num};
my $host = $p->{host};
my $share = $p->{share};
my $dump = $p->{num};
-
- my $cmd = $tarIncCreate. " -h $host -s $share -n $dump";
+ my $otherUser = "backuppc-agi";
+
+ my $cmd = "sudo -u $otherUser ".$tarIncCreate. " -h $host -s $share -n $dump";
print "$cmd ";
if (system($cmd) != 0) {
print " FAILED.\n";
print "$cmd ";
if (system($cmd) != 0) {
print " FAILED.\n";
@@
-531,13
+532,11
@@
foreach my $copy_nr ( 1 .. $copies ) {
} else {
$iso_size = (stat($iso_file))[7];
} else {
$iso_size = (stat($iso_file))[7];
- print "ISO $iso_file al
l
ready exists [$iso_size bytes]\n";
+ print "ISO $iso_file already exists [$iso_size bytes]\n";
}
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";
- die("debugging only!");
-
system($bin->{'eject'}.' '.$eject_opts) == 0 or skip "can't run eject: $?";
my $wait = <STDIN>;
system($bin->{'eject'}.' '.$eject_opts) == 0 or skip "can't run eject: $?";
my $wait = <STDIN>;