Use rsync on non standart port
Published on 21.01.2015
I want to get out from my current hosting provider - Superhosting servers but I'm super lazy and instead of making tar.gz / zip archives and moving them via wget for example I prefer to use rsync. Everything is good until I realize that Superhosting is using non standard SSH port, fortunately I can still using rsync with setting "-e" parameter
rsync -avz -e "ssh -p 1022" user@server.net:~/www/ /tmp/copyThis will copy all content from account www directory to /tmp/copy on new machine.