我有两台具有非标准ssh端口的服务器:
为了将数据从liveserver同步到testserver,我想我将ssh放入testserver,然后从那里将数据rsync到本地(也称为testserver)。
ssh [email protected] -p 456 rsync -zra -e "ssh -p 123 --delete --exclude='.env' [email protected]:/path/to/dump.bz2 path/to;
这给我
Unexpected remote arg: [email protected]:/path/to/dump.bz2
rsync error: syntax or usage error (code 1) at main.c(1354) [sender=3.1.3]
我的概念错误还是语法错误?
ssh [email protected] -p 456 "rsync -zra -e 'ssh -p 123' --delete --exclude=.env [email protected]:/path/to/dump.bz2 path/to"
未经测试
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句