X-Git-Url: http://git.rot13.org/?p=BackupPC.git;a=blobdiff_plain;f=bin%2FBackupPC_restore;h=709e7fd8f313685cd5884b7f3b5ec02b9b9ce934;hp=27d4c946eefe4ac76efce9bbcea940ff3bc9b6b4;hb=2c6ebbdaeabadbda3af4bc7c748995215c045b82;hpb=9175f9157f0d54b50ebf11d2036c20f50ffc6d9d diff --git a/bin/BackupPC_restore b/bin/BackupPC_restore index 27d4c94..709e7fd 100755 --- a/bin/BackupPC_restore +++ b/bin/BackupPC_restore @@ -76,7 +76,7 @@ $reqFileName = $1; my $startTime = time(); -my $Hosts = $bpc->HostInfoRead(); +my $Hosts = $bpc->HostInfoRead($client); my $Dir = "$TopDir/pc/$client"; my $xferPid = -1; @@ -96,6 +96,7 @@ if ( !-f "$Dir/LOCK" ) { open(LOG, ">>", "$Dir/LOG"); select(LOG); $| = 1; select(STDOUT); + # # Read the request file # @@ -568,6 +569,8 @@ sub UserCommandRun XferMethod => $Conf{XferMethod}, sshPath => $Conf{SshPath}, LOG => *LOG, + user => $Hosts->{$client}{user}, + moreUsers => $Hosts->{$client}{moreUsers}, XferLOG => $RestoreLOG, stat => \%stat, xferOK => $stat{xferOK},