Easiest way to sync two folders

What's the easiest way to sync the contents of a folder on a Mac OSX machine with another folder on a Linux server?

You can use scp:

scp -r /path/to/folder/ username@IP_ADDRESS:/path/to/sync/with

But scp is slow and copies all files, regardless of whether or not they exist on the server. What are some other options?


install something like homebrew or macports to install rsync on the mac.. and use rsync

rsync -av /path/to/folder/ username@IP_ADDRESS:/path/to/sync/with