I have thought about setting up a backup server for emergencies. But
rather than doing it the way you are considering I was going to do it
by rsync'ing all of the directories that get used then just having a
script that watches the primary machine and changes the IP on the
backup box if the primary fails.
As far as keeping them synchronized, something like this should work
(assuming that you have ssh set up and running on the standard port
with the proper keys in place)
/usr/bin/rsync -avzog --delete -e ssh mainmachine:/etc/mail /etc/
/usr/bin/rsync -avzog --delete -e ssh mainmachine:/var/lib/mysql
/var/lib/
/usr/bin/rsync -avzog --delete -e ssh mainmachine:/home/vpopmail /home/
/usr/bin/rsync -avzog --delete -e ssh mainmachine:/var/qmail /var/
Did I forget any?
You might want /var/log/qmail, but that gets large quickly.
Run that script once to get it all in place, then put it into a cron
job to run every few minutes. That will keep the server in sync with
the main one, so all you will need to do is put this server intoplace
and it should take over without any problems.
-Thanks to everyone for your fast replies ! In fact , this seems to be
a much better solution than the one I had in mind ...I'm going to test
it right now ! Do you also have an example of the script for
controlling the primary machine and switching IP ?
Once more , thank you !!
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]