Hi. I have two servers (primary and a secondary) with a DNS failover through DNSMADEEASY. When the primary fails, traffic is automatically redirected to the secondary.
I rsync /var/qmail/mailnames/ (with --delete option) several times per day, from the primary to the secondary, in order that clients have their mail up to date should there be a failure on the main server.
THE ISSUE: After a failure, when the primary comes back to life, the cron automatically starts rsync again, with the --delete option, and it deletes on the secondary all mails received during the failure period.
Any ideas on how could I avoid this problem? (in other words, I wonder how could I get the rsync cron NOT to start automatically after the server has undergone a complete or an apache / qmail failure).
First thing came to my mind is to keep a trigger applies when the failover happens, and apply this to check which one is alive and do the rsync.
Kevin Cheri : Senior Server Administrator / Freelancer : 9+ years Exp, reach me out for any help Server Optimization Expert / Mysql Guru / Migration Specialist
Skype : lynxmaestro
Gmail : [email protected]