我得到以下错误:
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/; [email protected]'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/; [email protected]'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!
从-estring中删除192.168.0.1 。
错误很明显:远程命令/程序(最可能的rsync )之一没有find。 你可以仔细检查远程机器上是否安装了rsync , PATHvariables是否正确configuration?
无论如何,你的rsync命令似乎不必要的复杂:尝试运行一些东西
rsync -avn --progress [email protected]:/domains/remote/ /domains/local/
它会改变什么吗?
尝试在-e块中指定nice , ionice和ssh的完整path。 有些东西不太可能。