Tag Archives: tarsnap

Tarsnap Nagios checks

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.)

tarsnap bash-completion

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.


UPDATE:  http://bitbucket.org/andol/tarsnap-completion/

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.)