rsync –progress -r –exclude-from=./rsync_exclude.txt –delete -e ssh -p ./ user@host:path
- r= recursive
-exclude-from = exclude files txt file
–delete = deletes files that aren’t on target
-e = specify shell to use , ssh in this case
-p = preserve the permissions
a really easy way to deploy code to your web servers.  my rsync_exclude.txt usually includes my eclipse settings [...]

read more from this topic.....