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 files and .svn

a really easy shell script would be to have this loop through your production servers to do an update.

try it out tell me what you think