Saturday, November 13, 2010

Rsync Change SSH Port Number While Making Backups

SkyHi @ Saturday, November 13, 2010
How do I change my rsync command port number while making backup to remote server at backup1.example.com port 10253 (my ssh server runs on port # 10253)?

The command to change port number is pretty simple:
sync -av -e 'ssh -p PORT-NUMBER-HERE' /path/to/source user@backup1.example.com
Backup /home/vivek to server1.nixcraft.net.in at port number 5000, enter:
 
rsync -av -e 'ssh -p 5000' /home/vivek backupop@server1.nixcraft.net.in
 

See also:

man rsync

REFERENCES
http://www.cyberciti.biz/faq/unix-linux-bsd-osx-change-rsync-port-number/