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!
Thank you for your answer!
I am already doing it like this.
Maybe this should be more a feature request than a maintenance question. I think it choosing a port for the rsync backup can be useful for a lot of people who want to backup their Mail-in-a-Box to a home computer.
You can push the rsync output to your NAS easily. I am using at home the WD My Cloud Ex2 NAS and the SSH is listening on a different port than the 22. So AFTER opening the 2233 port at the firewall of my router, I’m doing this:
rsync -a -e “ssh -p 2233” /home/user-data/backups/encrypted/ root@xxx.xxx.xxx.xxx:/path/where/to/backup
Don’t forget the encryption key!
You may need to delete the local backup though after the transfer, but this might be a good example for a different cronjob entry.