X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC_archiveStart;h=c527fa46557fe3279242776fb33db42197ef40e3;hp=c142390947b75d390549b8cc6bcf2ca025c8d9d3;hb=38abb9a20f4f9562df117185570646049ce126fb;hpb=9cf3998c4ef71332dea96ff3115daf8b9f722acb diff --git a/bin/BackupPC_archiveStart b/bin/BackupPC_archiveStart index c142390..c527fa4 100755 --- a/bin/BackupPC_archiveStart +++ b/bin/BackupPC_archiveStart @@ -35,7 +35,7 @@ # #======================================================================== # -# Version 3.2.0beta0, released 5 April 2009. +# Version 3.2.0, released 31 Jul 2010. # # See http://backuppc.sourceforge.net. # @@ -54,7 +54,7 @@ my %opts; # no options currently if ( !getopts("", \%opts) || @ARGV < 3 ) { print STDERR <ConfigRead($ArchiveHost); 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); @@ -83,7 +83,8 @@ for ( my $i = 2 ; $i < @ARGV ; $i++ ) { exit(1); } push(@HostList, $host); - push(@BackupList, $backups[$#backups]{num}); + $num ||= $backups[$#backups]{num}; + push(@BackupList, $num); } my $ReqFileName;