RSYNC
folders (local)
rsync -vzrptgoD -L --delete \<destination\> \<target\>
Sample:
rsync -vzrptgoD -L --delete production/public/fileadmin development/public/
note
With the --delete flag set we save local disk space since deleted files from remote will also be deleted on local machine.
SSH (with port config)
rsync --progress -avhl -e 'ssh -P 22' ssh \<destination\> \<target\>
Sample:
rsync --progress -avhl -e 'ssh -p 22' [ssh-user]@[ssh-host]:[abs-path] .