I need a Perl script that mirrors a WHM/cPanel server from another server. The script is to run on the secondary server and connect to the primary server and rsync the files and replicate the databases for the accounts on that server down to it.
The script is to be built with provisions for non standard ssh port access and also root ssh login disabled.
It is to be built so that once a day it will run and syncronise the secondary server.
I need someone who has done this before as there are only specific files and directories that need to be syncronised so that it does not break the secondary WHM server configuration & settings.
Also it should email a log once finished.