If you need to rsync those hidden directories or files starting with dot, do it something like below (note the trailing /) 1rsync -avz -e ssh --progress user@source-server:/somedirA/ somedirB/ See https://stackoverflow.com/questions/9046749/rsync-not-synchronizing-htaccess-file
Read More