Link to home
Start Free TrialLog in
Avatar of Daniele Brunengo
Daniele BrunengoFlag for Italy

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?
SOLUTION
Avatar of Dan Craciun
Dan Craciun
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Daniele Brunengo

ASKER

I think I'll go with master/master replication for the moment.

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.