Daniele Brunengo
asked on
Best way to sync 2 Centos servers
Hello, so me and my colleague have a Centos 6.6 LAMP web server where we're hosting about 60 websites.
We are very thorough with our backups of http files and mysql databases, but now we have "salvaged" another (slower) server which we'd like to use as a fallback for the first.
Right now the files are being backed up to the second server with rsync, but to copy the mysql folder we are forced to keep mysql disabled as a service on the destination server.
More over, packets and versions are different between the servers.
So I was wondering, is there a smart way to keep everything synced: packets, packet versions, databases and all relevant files, so that the second server is a perfect copy of the first and usable right away just by switching dns?
We are very thorough with our backups of http files and mysql databases, but now we have "salvaged" another (slower) server which we'd like to use as a fallback for the first.
Right now the files are being backed up to the second server with rsync, but to copy the mysql folder we are forced to keep mysql disabled as a service on the destination server.
More over, packets and versions are different between the servers.
So I was wondering, is there a smart way to keep everything synced: packets, packet versions, databases and all relevant files, so that the second server is a perfect copy of the first and usable right away just by switching dns?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Drdb is very interesting though, I'm setting up two virtual machines at home (linked to different ISPs) with the same environment as the server, so I can test Drdb replication.
Thanks for all your excellent suggestions.