Usage of rsync: 5,31,2004

1) prepare ssh.exe, rsync.exe, corresponding cygwin.
2) rsync -azv --delete -e ssh jsyeh@ip:/directory local_dest
or rsync -azv --delete -e ssh local_src jsyeh@ip:/directory

cf. -azv is for archive, zip, verbose
    -rlpt -v -z is for recursive,link,preservePermission,preserveTime, verbose, zip
--delete is to delete files in dest,
-e ssh is to use ssh.exe as remote shell

The source directory will be put in local place.
ex.
rsync -azv --delete -e ssh jsyeh@140.112.29.136:public-html c:\
will copy the directory public-html to c:\public-html

rsync -azv --delete -e ssh c:\temp jsyeh@140.112.29.136:tmp
will copy the c:\temp to ~jsyeh/tmp/temp

reference:
http://optics.ph.unimelb.edu.au/help/rsync/rsync_pc1.html
rsync.bat for RCSB PDB