|
|
@ -45,7 +45,8 @@ class RsyncTask extends AbstractTask |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$excludes = $this->getExcludes(); |
|
|
|
$excludes = $this->getExcludes(); |
|
|
|
$cmdRsync = sprintf('rsync -e "ssh -p %d %s" %s %s ./ %s@%s:%s', $sshConfig['port'], $sshConfig['flags'], $flags, $excludes, $user, $host, $targetDir); |
|
|
|
$from = $this->runtime->getEnvOption('from', './'); |
|
|
|
|
|
|
|
$cmdRsync = sprintf('rsync -e "ssh -p %d %s" %s %s %s %s@%s:%s', $sshConfig['port'], $sshConfig['flags'], $flags, $excludes, $from, $user, $host, $targetDir); |
|
|
|
|
|
|
|
|
|
|
|
/** @var Process $process */ |
|
|
|
/** @var Process $process */ |
|
|
|
$process = $this->runtime->runLocalCommand($cmdRsync, 600); |
|
|
|
$process = $this->runtime->runLocalCommand($cmdRsync, 600); |
|
|
|