我得到以下错误:
sudo ionice -c 3 nice -n +19 rsync -av --progress -e 'ionice -c 3 nice -n +19 ssh -l root -p 22 192.168.0.1' 192.168.0.1:/domains/remote/. /domains/local/;
root@192.168.0.1's password:
bash: 192.168.0.1: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: remote command not found (code 127) at io.c(605) [Receiver=3.0.9]rsync工作得更早,现在我得到了这个错误。
EDIT1:
root@local-debian7:/root# rsync -av --progress -e 'ssh -l root -p 22 192.168.0.1' 192.168.0.1:/domains/remote/. /domains/local/;
root@192.168.0.1's password:
bash: 192.168.0.1: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: remote command not found (code 127) at io.c(605) [Receiver=3.0.9]简化后还是一样。
EDIT2:
rsync -av --progress -e 'ssh -l root -p 22' 192.168.0.1:/domains/remote/. /domains/local/;在删除-e部件中的第一个192.168.0.1之后,终于成功了!
感谢@andrew-domaszek!
发布于 2017-04-01 18:18:56
从192.168.0.1字符串中删除-e。
发布于 2017-04-01 16:52:09
错误非常明显:找不到一个远程命令/程序(很可能是rsync)。您能否再次检查rsync是否安装在远程计算机上,以及是否正确配置了PATH变量?
无论如何,您的rsync命令似乎不必要地复杂:尝试运行如下
rsync -avn --progress root@192.168.0.1:/domains/remote/ /domains/local/
有什么改变吗?
发布于 2017-04-01 16:51:54
尝试在nice块中指定到-e、ionice和ssh的完整路径。有些事情不太可能出现在道路上。
https://serverfault.com/questions/841977
复制相似问题