Need an alerting system if my cloning script fails

Posted by rahum on Server Fault See other posts from Server Fault or by rahum
Published on 2012-07-06T06:25:27Z Indexed on 2012/07/06 9:17 UTC
Read the original article Hit count: 259

Filed under:
|
|
|

I've configured a nightly rsync to mirror one server to a standby offsite backup server. The total datastore on the primary is 1.5TB. In the course of getting this working, I ran into numerous instabilities with the environment, which I seem to have sorted out, but even though it's now working, I am still nervous. This is intended to be a disaster-scenario standby server, and if disaster strikes and the standby does not have all the proper data synchronized, I'm out of a job.

Thus, I want to script a system that will confirm, after each nightly sync, that the destination data matches the source. I realize that rsync does this, but if rsync doesn't complete fully (which was happening during the setup troubleshooting), I need to know.

Any suggestions? I'm best with Ruby, if that is relevant for the solution.

© Server Fault or respective owner

Related posts about monitoring

Related posts about scripting