I’m forever forgetting how to use a different ssh port with rsync, so here’s how to do it.
rsync -avrn --rsh='ssh -p2222' dir1 email@example.com:path/to/dir1/
There. I now have somewhere to refer to the next time I forget.
Based in Staffordshire, UK