rsync

rsync with remote

rsync -av localfolder/ server:/remotefolder/

clone folder

rsync -a src/ dest

“A trailing slash on the source […] avoid[s] creating an additional directory level at the destination.”

clone folder and exclude git folder

rsync -a --progress shop/ shopdev --exclude .git