klo*_*lor 4 linux debian ssh rsync
我收到以下错误:
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]
Run Code Online (Sandbox Code Playgroud)
rsync 工作较早,现在我收到此错误。
编辑1:
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]
Run Code Online (Sandbox Code Playgroud)
简化后还是一样。
编辑2:
rsync -av --progress -e 'ssh -l root -p 22' 192.168.0.1:/domains/remote/. /domains/local/;
Run Code Online (Sandbox Code Playgroud)
删除 -e 部分中的第一个 192.168.0.1 后,终于成功了!
感谢@andrew-domaszek!
错误很明显:rsync找不到远程命令/程序之一(很可能)。您能否仔细检查rsync远程计算机上是否安装了该PATH变量以及该变量是否已正确配置?
无论如何,您的rsync命令似乎不必要地复杂:尝试运行
rsync -avn --progress root@192.168.0.1:/domains/remote/ /domains/local/
它会改变什么吗?
| 归档时间: |
|
| 查看次数: |
25800 次 |
| 最近记录: |