How to use rsync with a different port?

Hi,
i am trying to figure out how to backup my box with rsync but with a different port.
i have tried to modify the backup.py[1], but that gives me this error when setting up rsync in the web interface:


I changed in line 19 [2] “-p 22” to “-p 2222”.

Any ideas on how to get it working?
Thanks for your time!

[1] https://github.com/mail-in-a-box/mailinabox/blob/a081d040822ce0f58e0554b6a28e36945cde0275/management/backup.py
[2] “–rsync-options=-e “/usr/bin/ssh -oStrictHostKeyChecking=no -oBatchMode=yes -p 22 -i /root/.ssh/id_rsa_miab””,