Ответ 1
Непосредственно со страницы rsync
:
The syntax for requesting multiple files from a remote host is done
by specifying additional remote-host args in the same style as the
first, or with the hostname omitted. For instance, all these work:
rsync -av host:file1 :file2 host:file{3,4} /dest/
rsync -av host::modname/file{1,2} host::modname/file3 /dest/
rsync -av host::modname/file1 ::modname/file{3,4}
Это означает, что ваш пример должен содержать пробел перед вторым путем:
rsync -e ssh [email protected]:/path/to/file :/path/to/second/file/ /local/directory/
Я предлагаю вам сначала попробовать его с опцией -n
или --dry-run
, поэтому вы увидите, что будет сделано, до того, как будут выполнены фактические копии (и возможные удаления).