Use rsync over ssh CentOS RHEL Scientific Linux Bash

Make sure you have rsync installed on both servers and then you can use it with ssh to sync remote directories in one line:

cd /webroot/www
rsync -avz -e ssh syncboy@FROMHOST:/webroot/www/vmhacks.com .

enjoy.

Mm.,