Dead man's switch for backups #223
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#223
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
One of the things that borgmatic has never claimed to do is protect against your backup cron job just failing and silently not making backups.
But what if it could?
The motivation is pretty obvious: You want confidence that your backups are still running, and you want to get notified as soon as they stop running so you can fix the problem.
Related issues: #86 #126
Implementation ideas
There are a number of existing services that could provide part of a solution. For instance, https://healthchecks.io/ provides "Instant Alerts When Your Cron Jobs Fail Silently".
So even without any work on this issue, a user today could add a post-backup hook in borgmatic's configuration that would hit healthchecks.io or a similar service. And then the service would notify the user if backups ever went radio silent.
But maybe a more built-in integration or feature around this in borgmatic would be pretty hot? For instance, built-in heathchecks.io integration?
Prior art
https://www.reddit.com/r/DataHoarder/comments/dggwjg/borgbackup_borg_consciousness_get_email_alerts_if/
Done! And released in 1.3.25. See the docs here: https://torsion.org/borgmatic/docs/how-to/monitor-your-backups/#healthchecks-hook