projects
/
BackupPC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[BackupPC.git]
/
bin
/
BackupPC_archiveStart
diff --git
a/bin/BackupPC_archiveStart
b/bin/BackupPC_archiveStart
index
8f39e06
..
c527fa4
100755
(executable)
--- a/
bin/BackupPC_archiveStart
+++ b/
bin/BackupPC_archiveStart
@@
-54,7
+54,7
@@
my %opts;
# no options currently
if ( !getopts("", \%opts) || @ARGV < 3 ) {
print STDERR <<EOF;
# no options currently
if ( !getopts("", \%opts) || @ARGV < 3 ) {
print STDERR <<EOF;
-usage: $0 archiveHost userName hosts...
+usage: $0 archiveHost userName hosts
[:num]
...
EOF
exit(1);
}
EOF
exit(1);
}
@@
-72,7
+72,7
@@
$bpc->ConfigRead($ArchiveHost);
my(@HostList, @BackupList);
for ( my $i = 2 ; $i < @ARGV ; $i++ ) {
my(@HostList, @BackupList);
for ( my $i = 2 ; $i < @ARGV ; $i++ ) {
- my
$host = $ARGV[$i]
;
+ my
($host,$num) = split(/:/,$ARGV[$i],2)
;
if ( !defined($Hosts->{$host}) ) {
print(STDERR "$0: host $host doesn't exist... quitting\n");
exit(1);
if ( !defined($Hosts->{$host}) ) {
print(STDERR "$0: host $host doesn't exist... quitting\n");
exit(1);
@@
-83,7
+83,8
@@
for ( my $i = 2 ; $i < @ARGV ; $i++ ) {
exit(1);
}
push(@HostList, $host);
exit(1);
}
push(@HostList, $host);
- push(@BackupList, $backups[$#backups]{num});
+ $num ||= $backups[$#backups]{num};
+ push(@BackupList, $num);
}
my $ReqFileName;
}
my $ReqFileName;