我想在遠程桌面上使用遠程桌面來創建目錄樹,以及在遠程桌面上指定。我使用的是下面的命令,但它不工作當目錄在遠程服務器中不存在時。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]