How to use rsync with a different port?

hello,

i don’t know if this helps but you could just create a ssh config file for the root user on your miab.

/root/.ssh/config

Host hostnameof.your.bkpserver
    Port 2345

this way the rsync job will automatically use the desired port (no need to hack scripts).

3 Likes