Rsync with Custom SSH Port

We are running R1Soft as our backup software for last 4 months. We have converted almost all of our servers into R1Soft. But we still have couple of very old server (Aging 4 years) who are using Rsync. We have recently moved our backup server and found that changing the SSH port for the backup server was necessary. By default, rsync command won’t work with custom SSH port as it assume the SSH port is set to 22. To use a custom port you need to use the attribute ‘-e’. Here is an example of using Rsync with Custom SSH port 2287:

rsync -vrplogDtH -e “ssh -p 2287” /home [email protected]:/backup/

Just posted it thinking it might be useful for some users 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.