Repository Presets
Healthchecks Deadman Switch & Failure Alerting Hooks
Detect silent timer failures, stale SSH locks, and host outages within minutes using native Borgmatic healthchecks start/finish/fail pings.
Start + Finish + Fail Pings · Log Tail Attached
Why Failure-Only Emails Fail Silently
A server whose disk fills up or whose systemd timer gets disabled never sends a cron failure email. A deadman switch expects an explicit finish ping every 24 hours and alerts automatically when silence exceeds your grace window.
Attaching Borg Exit Status & Chunk Delta Logs
Configuring send_logs: true in Borgmatic's healthchecks block attaches the last 100 lines of stderr directly to the alert payload so you can diagnose lock_wait timeouts from your phone.
Measured Thresholds & Borgmatic Configuration
| Hook State | Endpoint Signal | What It Catches |
|---|---|---|
| start | POST /start before pre-hooks | Measures exact total backup runtime and warns on hung jobs |
| finish | POST success + trailing log lines | Resets deadman countdown only when create+prune+compact pass |
| fail | POST /fail with traceback excerpt | Immediate alert on SSH key error, full slice disk, or bad exit code |
| Deadman Grace | Period 24h / Grace 2h | Alerts even if the entire VPS powers off before timer fires |