To execute a rsync over a ssh connection, we need to add the option -e and the ssh connection to rsync with the specific port we want to use, in this case 2222:
rsync -e "ssh -p 2222" origin destiny
Where origin is the remote or source host from where we want to copy and destiny is the target host.
To add more information to rsync, we can append more options:
rsync -vah --stats --progress -e "ssh -p 2222" origin destiny
That will give us the statistics of the transfer and a progress.