While I have been using Tarsnap for a while now it is first recently I have gotten around to make Nagios monitor those backups. Given that I really don’t want to give the nagios user any actual access to my backups, I instead take the approach of having my backup script create a status file containing a Unix timestamp of the most recent backup.
My check_tarsnap Nagios plugin can then use that status file to check that the most recent backup isn’t older than a specified number of hours. For my nightly backups I have the Warning threshold set to 26 hours and the Critical threshold set to 42 hours.
(See the top comment in the plugin source for an example on how to create the status file.)
I’m currently trying out the Tarsnap backup solution (beta). Since it doesn’t come with a bash-completion of its own I’ve created one myself. I really can’t stand working with –long-options without proper completion.
For now I maintain it as a “junk branch” in Launchpad.
So far there is only the initial commit, hence it is most likely far from perfect. Feel free to point our errors and suggest improvements.
(Once I’ve used Tarsnap some more, I’ll probably put my experiences into a blog post of its own.)
For my personal backups I usually prefer to use rdiff-backup.
Since current Ubuntu versions doesn’t provide any packages from the recent stable branch of rdiff-backup I nowdays like to create my own debs. Also, rdiff-backup tends to work best if you have the same version on both ends of the backup.
At first I maintained my own repository, had a whole set of different pbuilder chroots, etc. While it was a good learning experience I’m not really sure it’s worth the effort for just one package. Hence I now maintain my packages in a Launchpad PPA.
In case you’d like to use my rdiff-backup packages you are very welcome to do so. They can be found in the PPA for Andreas Olsson.
EDIT: Use PPA for rdiff-backup packages (also mine) instead.
Actually, you really shouldn’t use my PPA unless: 1) You have a somewhat good reason to trust me and/or 2) You have the means to get even with me if my packages break your system.
I use rdiff-backup for most of my private backups. It’s a great piece of software. I just wish it had its own bash-completions.
Update October 6th: Now included in Debian (sid).