Say I have two directories that contain content (/home/site1/var/www/html) and /home/site2/var/www/html). Both directories should contain the same information, but files may be added or modified in one directory only and not the other, at which point I need a way of keeping the other directory in sync.

My question is can I use rsync + a cron job to do this? And if not, is there another way to do this?