我试图将主目录更新为备份计算机
rsync -avru --exclude-from='/home/me/exclude-me.txt' /home/me/* assistant@assistant.local:/home/assistant/* -p 2222但是有个错误
Unexpected remote arg: assistant@assistant.local:
rsync error: syntax or usage error (code 1) at main.c(1361) [sender=3.1.2]我的密码有什么问题?
发布于 2019-01-26 10:49:43
对于rsync,-p选项意味着保留权限,而不使用参数。因此,您的命令不能正确地解析,您将得到一个错误。
如果要更改rsync应该连接的SSH端口,请使用以下命令。
rsync -avru --exclude-from='/home/me/exclude-me.txt' -e 'ssh -p 2222' \
/home/me/ \
assistant@assistant.local:/home/assistant/https://askubuntu.com/questions/1113014
复制相似问题