print("usage: $0 [-d] [-e] [-f] [-i] <client>\n");
exit(1);
}
-if ( $ARGV[0] !~ /^([\w\.-\s]+)$/ ) {
+if ( $ARGV[0] !~ /^([\w\.\s-]+)$/ ) {
print("$0: bad client name '$ARGV[0]'\n");
exit(1);
}
$hostIP = $client;
exit(1) if ( $bpc->CheckHostAlive($hostIP) < 0 );
($client, $user) = $bpc->NetBiosInfoGet($hostIP);
- exit(1) if ( $host !~ /^([\w\.-]+)$/ );
+ exit(1) if ( $host !~ /^([\w\.\s-]+)$/ );
my $hosts = $bpc->HostInfoRead($client);
exit(1) if ( !defined($hosts->{$client}) );
$host = $client;
share => $ShareNames->[0],
shares => $ShareNames,
XferMethod => $Conf{XferMethod},
+ sshPath => $Conf{SshPath},
LOG => *LOG,
XferLOG => $XferLOG,
stat => \%stat,
print("usage: $0 <host>\n");
exit(1);
}
-if ( $ARGV[0] !~ /^([\w\.-\s]+)$/ ) {
+if ( $ARGV[0] !~ /^([\w\.\s-]+)$/ ) {
print("$0: bad host name '$ARGV[0]'\n");
exit(1);
}
hostIP => $hostIP,
share => $RestoreReq{shareDest},
XferMethod => $Conf{XferMethod},
+ sshPath => $Conf{SshPath},
LOG => *LOG,
XferLOG => $RestoreLOG,
stat => \%stat,
exit(1);
}
-if ( $opts{h} !~ /^([\w\.-\s]+)$/ ) {
+if ( $opts{h} !~ /^([\w\.\s-]+)$/ ) {
print(STDERR "$0: bad host name '$opts{h}'\n");
exit(1);
}
print("usage: $0 <host> <shareName> <compressLevel>\n");
exit(1);
}
-if ( $ARGV[0] !~ /^([\w\.-\s]+)$/ ) {
+if ( $ARGV[0] !~ /^([\w\.\s-]+)$/ ) {
print("$0: bad host name '$ARGV[0]'\n");
exit(1);
}
exit(1);
}
-if ( $opts{h} !~ /^([\w\.-]+)$/ ) {
+if ( $opts{h} !~ /^([\w\.\s-]+)$/ ) {
print(STDERR "$0: bad host name '$opts{h}'\n");
exit(1);
}
# $timeStampFile start time for incremental dump
#
$Conf{SmbClientFullCmd} = '$smbClientPath \\\\$host\\$shareName'
- . '$I_option -U $userName -E -N -d 1'
+ . ' $I_option -U $userName -E -N -d 1'
. ' -c tarmode\\ full -Tc$X_option - $fileList';
$Conf{SmbClientIncrCmd} = '$smbClientPath \\\\$host\\$shareName'
- . '$I_option -U $userName -E -N -d 1'
+ . ' $I_option -U $userName -E -N -d 1'
. ' -c tarmode\\ full -TcN$X_option $timeStampFile - $fileList';
$Conf{SmbClientRestoreCmd} = '$smbClientPath \\\\$host\\$shareName'
- . '$I_option -U $userName -E -N -d 1'
+ . ' $I_option -U $userName -E -N -d 1'
. ' -c tarmode\\ full -Tx -';
#
# to all refer to the same physical hosts. This should only be
# set in the per-PC config file.
#
+# Note: this setting doesn't work for DHCP hosts.
+#
$Conf{ClientNameAlias} = undef;
#