跳至主要內容

文章

顯示從 10月, 2011 起發佈的文章

[Rsync]Windows Client 備份到遠端 Ubuntu(Linux) Rsync伺服器分享

1.請先參考[Cwrsync for windows教學(需要密碼)]安裝Client端的設定,參考下面的Client端安裝方式,因為我們的Server不是Windows了換成Linux Rsync伺服器 2.參考[Rsync Server安裝與設定]安裝好Rsync套件,並加入密碼檔 3.接者編輯windows client 安裝cwrsync的目錄下[cwrsync.cmd]檔案,輸入以下的文字 rsync -arHz --password-file=/cygdrive/e/data/cwRsync/rsyncd.secrets /cygdrive/D/adonis/ adonis@rsync.adc.com.tw::myData --password-file=/cygdrive/e/rsyncd.txt 可以用 Server (LINUX)上的password file 要 chown root:root rsyncd.secrets 及chmod 600 rsyncd.secrets Client (WIN)上的password file 要用c:\program files\cwRsync\bin\ 的chown administrator rsyncd.txt及 chmod -c 600 rsyncd.txt 說明: (1)--password-file=/cygdrive/e/data/cwRsync/rsyncd.secrets ===>密碼檔放置的位置 (2)adonis@rsync.adc.com.tw::myData ===> 使用adonis認證上傳到rsync.abc.com.tw伺服器上 (3)rsyncd.secrets ==>只要輸在在Server端上的所建立使用者的密碼就可以囉,如:123456 4.到DOS視窗點cwrsync.cmd,就可以上傳資料囉。 注意:這台是XP所以沒有問題可以上傳,但是如果你是windows server時會出現錯誤訊息,解決方式就可以參考我的另一篇解決方法 [cwrsync password file must be owned by root when running as root]