Monitoring your backups with monit

Posted on Tue 31 December 2019 in how-to

"You'll never check that your backups are working until you need them." At least at home this may be true. So let's check them! Most monitoring agents support the execution of custom scripts and alerting in case something goes wrong (based on exit code).

I'm using monit to to this and have written a small fish shell script you can find on GitHub.

When set-up for every repository there's one entry in the http interface as well as in the monit status command:

monit borg overview

If a check fails some details can be shown:

monit borg overview