Rsync windows explained
Thu, 06/17/2010 - 13:36
At work we have a really nice system to update our OTAP street, it uses rsync and some other stuff. But for home development i always used tools like filezilla or some other ftp client, but after a day development you never know which files are updated so you just upload everything again. but there is a better solution, rsync for windows.
First download rsync:
http://www.rsync.net/resources/binaries/cwRsync_3.1.0_Installer.zip
After that add a folder to your enviroment variables. Go to "System properties" (right click my Computer) click on "Advanced" and then on "Enviroment Variables"

Then add this folder to your "Path" setting: C:\Program Files\cwRsync\bin\;
It should look like this:

Sometimes you need to reboot you computer but to find out if it works, open your commandline (type cmd in your search box) and hit enter. After that type rsync and hit enter
![]()
Now you should see a big list with options.
Now the magic command (single line):
c:\Progra~1\cwRsync\bin\rsync.exe-avzW--chmod=ugo=rwX "/cygdrive/f/my dropbox/webserver/website" username@domain.com:/home/webroot/public_html/
Change it to your needs, this command updates only the changed files, make sure your server and home pc time is running correct. The --chmod option makes sure file permissions are being kept as they where set on the server. I use Komodo edit, so i added a command in my toolbox so i only have to click once to update a specific client. Verry handy!

Enjoy
Post new comment