如題所描述的錯誤,在用戶端執行 rsync同步的時候同樣會提示一個沒見到過的錯誤,但是根據報錯資訊和互連網搜尋,可以得到大致是解決的方案,我匯總一下,如下所展示,如果您遇到了類似的問題,希望能夠這樣解決:
1.首先去伺服器端的cwRsync上面檢查安裝目錄下是否有
rsyncd.conf
這個檔案,這個檔案是進行配置reync服務端的設定檔,裡面的預設內容為:
use chroot = falsestrict modes = falsehosts allow = *log file = rsyncd.log # Module definitions# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work#[test]path = /cygdrive/c/workread only = falsetransfer logging = yes
本欄目更多精彩內容:http://www.bianceng.cnhttp://www.bianceng.cn/Servers/zs/
這樣的資訊可能不能夠完成我們的初始化需要,因此需要在這個基礎上進行一下改造:
use chroot = falsestrict modes = falsehosts allow = *log file = rsyncd.logpid file = rsyncd.piduid = 0gid = 0 # Module definitions# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work#[backup]comment = OurFuturepath = /cygdrive/e/backupread only = notransfer logging = yessecrets file = /cygdrive/e/rsync.pass
對於本問題,我所做的修改主要是第六行,第七行,這樣的操作時允許所有的使用者與組參與同步。
2.如果這樣操作還是沒用,而轉換成了另一種錯誤提示
@ERROR: invalid gid nobody
那請參考上一篇日誌,解決一下密碼檔案的許可權問題,就可以了。
3.同時如果遇到這個問題
sending incremental file list
ERROR: module is read only
rsync: read error: Software caused connection abort (113)
rsync error: error in rsync protocol data stream (code 12) at io.c(769) [sender=3.0.7]
請嘗試修改上述原始設定檔中的第十一行,使其保持False或者0的參數。
4.處理好的同步語句,在用戶端上執行後的樣子:
rsync -av /cygdrive/e/test/ administrator@10.5.83.25::backup
sending incremental file list
./
建立 RTF 文檔 (2).rtf
建立 RTF 文檔.rtf
建立壓縮(zipped)檔案夾.zip
sent 276 bytes received 74 bytes 700.00 bytes/sec
total size is 36 speedup is 0.10