Copy remote folder using rsync

rsync -avzh --rsh='ssh -p123456' --progress root@ /home/backup1

in above command -p123456 is the custom port number and root@ is the server ip remote server ip means the server from where you want to copy files to local server

/home is remote server directory which you want to copy and /home/backup1 is the local server directory