OK, OSX is a "good" operating system and I use it among win7 and centos BUT there are a number of things that annoy me from a geek perspective. One of them is outdated versions of various packages - in this case Rsync.
By defaut, OSX 10.6 ships with version 2.6.9 - which for most basic taks is "fine" but if you are rsyncing files with international characters in filename from a linux you need to use iconv option with rsync, more about that in this post.
So, if you need to upgrade the rsync version of your OSX, you have a few options:
Install Rsync version 3x on OSX 10.6
- Compile from source - this is OSX, I thought the days of compiling software was so NOT OSX, anyway.. suit yourself
- Macports - I personally dont use macports, but if you are, good luck
- Install precompiled version of rsync - maybe a little insecure, but a lot more easier if you dont fancy "messing around"
Using any of the above methods by default will place new version of Rsync into /usr/local/bin/ folder, all that remains is to include this in your local path.
Adding Rsync directories to the Mac OS X PATH variable
echo 'export PATH=/usr/local/bin:$PATH' >> ~/.profile
Relaunch Terminal and check the version: