does not “enable” port. That's firewall's job. What you can do with it, is to tell SSH on which port listen for incoming connections.
If you're using OpenRC it should work, except for part I'm not sure about, which is rsync -avzhe ssh
. Perhaps better would be:
As you've noticed, there's no -z
, since there's no need for it on LAN (it only would slow down things, unless you don't have even 10 Mb/s of bandwidth on LAN…).
Note that your command will require to enter password every time. Better way would be to authenticate using keys.