Copy remote folder using rsync

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

in above command -p123456 is the custom port number and root@1.1.1.1 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