Answers:
这已经很老了,但是可接受的答案有点太严格了-多个文件不一定是rsync的单个参数。来自man rsync
:
ADVANCED USAGE
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}
所以OP的命令是
rsync -Pav -e 'ssh -i sshkey' user@remotemachine:/home/user/file1.zip :/home/user/file2.zip :/home/user/file3.zip .
对于较旧的rsync版本,这是不可能的,但是我认为所有主要发行版都已经发行了好几年了。