Sync script between two places

Hello Team,

We would like to copy or sync a couple a zpool and all dataset inside between two datacenters one time per day, the structure and space are the same in both sides.
We are consider to use rsync and a cron job.

We would like to know what type of ports we have to open in the firewall as well as services.

Could you please help us with the appropiate shell script that we have to configure in Solaris 11

Thanks in advance

Regards

Carlos

There is plenty of documentation and examples on using rsync on the web that should be more than sufficient for a start.
Also should try to write the script yourself, which will be not much more than a long command line for rsync, if you don't have any additional checks or something.
You should use -e ssh with rsync so you have to open only port 22 for the encrypted rsync communication.

Do not hesitate to ask here if you get stuck, but a bit of own effort should be shown.