1 main server and 1 fail over server
I am after some advice on the best way to set up 2 servers.
One is the 'main' server and one is in case the main server goes down for any reason.
From initial setup the servers will be identical.
I want to set up a nightly routine in which all data which is altered or added is copied to the 2nd server so if anything does go wrong I can just switch machines over to be up and running again in no time.
This will have to happen over the internet as the machines will be in two different physical locations.
What should I be researching? Does anyone do this, and is there any software that can help me achieve this, or do I have to use a custom script scheduled by cron?