2012-05-11 158 views
5

我試圖做一個rsync將500GB的文件從一臺服務器轉移到另一臺服務器。我使用這個命令;rsync錯誤:rsync協議數據流錯誤(代碼12)

rsync -vrPt -e 'ssh -p 2222' [email protected]:/folder /newfolder

它的工作和同步約10/15分鐘,然後它每次拋出此錯誤;

rsync: connection unexpectedly closed (16884 bytes received so far) [receiver] rsync: writefd_unbuffered failed to write 4 bytes to socket [generator]: Broken pipe (32) rsync error: error in rsync protocol data stream (code 12) at io.c(1525) [generator=3.0.6] rsync error: error in rsync protocol data stream (code 12) at io.c(600) [receiver=3.0.6]

問題是什麼?

回答

1

它看起來像是路由器超時NAT表條目。 (我假設其中一臺服務器在DSL鏈路上。)

或者它可能是這樣的:「空閒連接導致路由器或遠程shell服務器關閉連接。」來自http://rsync.samba.org/issues.html