--- title: rsync --- 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 ``` [static webpages]: powered_by.html