Rsync between Windows Folders#

Following from the last post, here is an example script that uses cwrsync to sync a network share and another folder. I had to map the network share to a drive before I could use it properly.

@ECHO OFF
rem uuid = 7bf0dca6-5cde-4e41-b1d5-d75f4002abb5

SET CWRSYNCHOME=C:\PROGRAM FILES\CWRSYNC
SET CYGWIN=nontsec
SET CWOLDPATH=%PATH%
SET PATH=%CWRSYNCHOME%\BIN;%PATH%
SET HOME=C:\Program Files\cwRsync\bin
SET USERNAME=troy
SET RSYNC_RSH=ssh.exe

rem Use the --dry-run option to show what would happen
rem sync from server to local

echo Pulling changes from the iBlast pdf papers

rsync -vrt  /cygdrive/w/documents/ "/cygdrive/c/my documents/research"

pause