How to automate restoration of Cpanel backup to another server
Question
Cpanel has a built-in feature that allows automatic backup of accounts. Is there a way to automate restoration of it to another geographically separated server?
For example:
- You setup daily backups from Server A.
- You restore those daily backups to Server B as they come, overwriting previous restores.
Basically it's like having a standby server except the backup server's data is one day late.
Solution
The best solution for this it's not a backup/restore-over-write.
Best solution it's a failover solution.
Combine rsync (for any file on system and files cpanel (usr(local7cpanel & /var/cpanel/) + MySQL on mode Master-Slave
In this case, you have a clone copy of your system on other server ....
A nice day.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow