keep two dirs in sync
This is run via cron to sync the static webpages dir to the htdocs dir
rsync -rpc --del --exclude='.*.swp' --exclude='_src/' --delete-excluded /path/to/webdir/ /var/www/localhost/htdocs
This is run via cron to sync the static webpages dir to the htdocs dir
rsync -rpc --del --exclude='.*.swp' --exclude='_src/' --delete-excluded /path/to/webdir/ /var/www/localhost/htdocs