From remote server to local one:
rsync -avzhe ssh remote_user@REMOTE_IP:/remote_folder_or_file /local_destination_folder_or_file
From local server to remote one:
rsync -avzhe ssh local_folder_or_file remote_user@REMOTE_IP:/remote_destination_folder_or_file
That’s it, Enjoy!
Sources:
Rsync (Remote Sync): 10 Practical Examples of Rsync Command in Linux