# Makes the remote folder look *exactly* like the source dir including file # permissions, ownership, etc. # -a Archive (sets a number of things). # -v Versose # --delete Dangerous! Will remove files on the remote which do not exist # in source. # Be sure you have remotedir set properly and maybe run without --delete # once to ensure that it does what you think it will do. rsync -av --progress --delete sourcedir user@host:remotedir