rsync
rsync⚑
Copy folder contents and delete anything else⚑
rsync -avz --delete :
Exclude a path or regex⚑
rsync --exclude ""
Where the path is relative to the path we want to sync.
(http://www.thegeekstuff.com/2011/01/rsync-exclude-files-and-folders/?utm_source=feedburner)