I am setting up a CPanel server for my company. We have been using InMotion to host our websites and email for other businesses. Due to network related issues and since we are an internet service provider it only made sense to bring the server in house. I have two servers in which I am trying to make the second one a fail-over. They both use the same public IP's and have different private IPs. This allows me to switch to the 2nd server using routing protocols which is almost instant vs using DNS to switch to the other server. I had read a lot on mirror 2 CPanel servers without much luck. I have tried using Rsync and it halfway works. It will transfer stuff, but if also messed up some things because of files being transferred that should not be.
I option I am looking into now is having server1 auto backup daily which I have setup already, using a cron job to Rsync the backups to server2 daily, and having server2 auto restore the backups daily. I haven't found any option in WHM to auto restore so I would probably have to do a cron job for that also.
I am not fluent with Linux, just able to figure it out as I go. Can somebody help me with a auto restore solution?
I option I am looking into now is having server1 auto backup daily which I have setup already, using a cron job to Rsync the backups to server2 daily, and having server2 auto restore the backups daily. I haven't found any option in WHM to auto restore so I would probably have to do a cron job for that also.
I am not fluent with Linux, just able to figure it out as I go. Can somebody help me with a auto restore solution?