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
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s