Hi!
I have 2 servers setup in a HA environment using heartbeat. My home directories and database directories are transfered in real time to the secondary server with drbd.
On the primary server, I'm doing a daily cpbackup and coping it over to the secondary server.
Now my questions are...
a) How can I restore the backup on secondary by script? There is some script in cpanel's /scripts folder that do that for me? Since I already have the users home and mysql in place, there is some way to restore only the system and cpanel files and directories (by script)? This script can be run with the cpanel service stoped? This script need to have access to the home directories?
b) If not, I'll need to write my won restore script, in that case, restore the files in dirs and files backup directories is enough to get cpanel work flawless on secondary server?
And about files like crontab file for the users?
c) How to add directories and/or files to the cpbackup routine (ie. add /etc/csf to backup)?
Thanks.
I have 2 servers setup in a HA environment using heartbeat. My home directories and database directories are transfered in real time to the secondary server with drbd.
On the primary server, I'm doing a daily cpbackup and coping it over to the secondary server.
Now my questions are...
a) How can I restore the backup on secondary by script? There is some script in cpanel's /scripts folder that do that for me? Since I already have the users home and mysql in place, there is some way to restore only the system and cpanel files and directories (by script)? This script can be run with the cpanel service stoped? This script need to have access to the home directories?
b) If not, I'll need to write my won restore script, in that case, restore the files in dirs and files backup directories is enough to get cpanel work flawless on secondary server?
And about files like crontab file for the users?
c) How to add directories and/or files to the cpbackup routine (ie. add /etc/csf to backup)?
Thanks.
Last edited: