我想在远程桌面上使用远程桌面来创建目录树,以及在远程桌面上指定。我使用的是下面的命令,但它不工作当目录在远程服务器中不存在时。rsync命令给出错误没有这样的文件或目录(2)
rsync -avzhe ssh --progress /root/BP/temp/temp.txt [email protected]:/root/BP/temp2
哪里/root/BP/temp/temp.txt
可在本地,但/root/BP/temp2
这条路是不是在远程服务器peresent。
我得到以下错误:
rsync: change_dir#3 "/root/BP" failed: No such file or directory (2)
rsync error: errors selecting input/output files, dirs (code 3) at main.c(625) [Receiver=3.0.9]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]