mkdir $syncdir;
my $cmd = $rsync_command->(
- $host_name, '--timeout', '10', "${host_ip}:$spooldir", $spooldir,
+ $host_name, '--timeout', '10', "[${host_ip}]:$spooldir", $spooldir,
'--files-from', $flistname);
PVE::Tools::run_command($cmd);
mkdir $syncdir;
my $cmd = $rsync_command->(
- $host_name, '-aq', '--timeout', '10', "${host_ip}:$syncdir/", $syncdir);
+ $host_name, '-aq', '--timeout', '10', "[${host_ip}]:$syncdir/", $syncdir);
foreach my $incl (('spam/', 'spam/*', 'spam/*/*', 'virus/', 'virus/*', 'virus/*/*')) {
push @$cmd, '--include', $incl;
mkdir $syncdir;
my $cmd = $rsync_command->(
- $host_name, '-aq', '--timeout', '10', "${host_ip}:$syncdir", $syncdir);
+ $host_name, '-aq', '--timeout', '10', "[${host_ip}]:$syncdir", $syncdir);
PVE::Tools::run_command($cmd);
}
my $cmd = $rsync_command->(
$master_name, '-aq',
- "${master_ip}:$cfgdir/* ${sa_conf_dir}/${sa_custom_cf}",
+ "[${master_ip}]:$cfgdir/* ${sa_conf_dir}/${sa_custom_cf}",
"$syncdir/",
'--exclude', 'master/',
'--exclude', '*~',