Rsync Client
使用cwRsync
下載 http://nchc.dl.sourceforge.net/sourceforge/sereds/cwRsync_2.0.7_Installer.zip
安裝過後,操作方式參考上面CLient端說明
注意不同點在於
rsync.exe -av /cygdrive/c/SRC_PATH user@ip::DST_PATH
rsync.exe -av –delete –password-file="/cygdrive/c/Program Files/cwRsync/bin/rsyncd.secrets" [email protected]::www /cygdrive/d/D/0dlinfo05/ssorcWWW
排程
將執行指令寫在C:Program FilescwRsync的cwrsync.cmd這檔案底下
接著新增排定工作
Rsync Server
下載 http://nchc.dl.sourceforge.net/sourceforge/sereds/cwRsync_Server_2.0.7_Installer.zip
編輯 C:Program FilescwRsyncServer syncd.conf
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
pid file = rsyncd.pid# Module definitions
# Remember cygwin naming conventions : c:work becomes /cygwin/c/work
#
[share]
path = C:Program FilescwRsyncServershare
read only = false
transfer logging = yes
執行
cd C:Program FilescwRsyncServerin
rsync.exe –config "C:Program FilescwRsyncServer syncd.conf" –daemon –no-detach
留言