rsync语法适用于--dry-run但不适用于实际

时间:2018-01-20 08:25:11

标签: ssh virtual-machine virtualbox rsync

我正在尝试rsync本地计算机上目录的内容ssh到我的虚拟机。

据我了解,此基本语法为:rsync -avzhe ssh [local directory path from root] [ip]:[directory path from root]

麦角:

$ rsync -avzhe ssh /Users/user_name/dir1/dir2/dir3/dir4/ 192.168.1.216/home/user_name/dir_a/dir_b/dir_c/

我的--dry-run发出了一个好消息:

building file list ...
12 files to consider
created directory 192.168.1.216/home/user_name/dir_a/dir_b/dir_c
# ect, etc, etc

sent 412 bytes  received 92 bytes  1.01K bytes/sec
total size is 173.42K  speedup is 344.08

我真正的尝试 - 不去:

building file list ...
12 files to consider
rsync: mkdir "/Users/user_name/dir1/dir2/dir3/dir4/192.168.1.216/home/user_name/dir_a/dir_b/dir_c" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-47/rsync/main.c(544) [receiver=2.6.9]
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-47/rsync/io.c(453) [sender=2.6.9]

我错过了什么?

1 个答案:

答案 0 :(得分:0)

错字2次:

我忘记在目标目录中使用var express=require("express"); var app = express(); var fs=require("fs"); var watson = require('watson-developer-cloud'); app.get("/",function(req,res){ var text_to_speech = watson.text_to_speech({ username: '6c1248f9-0de8-450c-8816-44a89c0e1cba', password: 'NSkOgtjNeE5w', version: 'v1' }); var params = { text: 'Turkish Prime Minister Binali Yildirim today reversed an earlier offer of compensation to Russia for shooting down one of Moscow military jets in November, media reported.', voice: 'en-US_AllisonVoice', accept: 'audio/wav' }; ,而在ip之后我错过了一个“:”。