Warren (mailing lists) wrote:
>
> 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/
Watch out for /var/qmail/queue. I don't think that'll go over well, due to
the way that filenames and inode numbers work. I don't know if a tool like
queue_repair.py could fix this or not. You might get away with simply
trimming out that directory.
--
-Eric 'shubes'
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]