suggestion for backup solution
helloI'd like to have opinions about the idea I had to backup my servers
I have 4 servers and I want to backup them one 1 (exclusive for backups)
My idea is to create folders like
/home/server01/home/ (the first "/home" is just because this partition will be the biggest one)
/home/server02/home/
...
/home/server01/mysql/
/home/server02/mysql/
...
/home/server01/ftpd/
/home/server02/ftpd/
...
/home/server01/mails/
/home/server02/mails/
...
/home/server02/namedb/
/home/server03/namedb/
well... basically it's that
The more complicated thing is that, in case I have a problem in one of the main servers, I want to be able to run the domains on the backup server (one of the nameservers of the domains will be on this backup server, so I'll need only to monitor others servers with nagios, for example, and change the DNS entry in case some of them has a problem... and wait for the propagation to the caches)
to accomplish this, my idea is to create the struct I told above and:
[I'M CONSIDERING THERE'S NO DUPLICATED USERNAMES ON THE SERVERS]
- merge the httpd.conf (shouldn't be difficult)
- find a way to make mysql consult more than one directory to find the databases (any suggestions?)
if it's not possible, i'll put them all on the same dir, but I'd rather having them separed...
then I'll need to "merge" the main database (no idea how)
- I didn't think how to do with ftpd (specially because one server uses pureftpd and others proftpd) and mail yet...
what must be considered is that this server will only be called in emergency... and probably for less than 4 hours, so it doesn't need to be "perfect"...
I think that if apache+mysql works it's fine... if possible it could at least queue the mails to be delivered when the main server is back (even if the user can't check them when it's down)
--/--
or maybe I should take another approach, like setting one service for each server, on different IPs?
like
backup server has usable IP 66.0.0.1 to .6
I could then open mysql for server01 on 66.0.0.1, for server02 on 66.0.0.2... and httpd for server01 on 66.0.0.1, and so on...
what do you think?
thanks