From 81ad33dce1299758dbd170c59ae4cd4402c00ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 9 Nov 2025 14:29:48 +0100 Subject: [PATCH] feat: add Mattermost notifications to Backrest via Shoutrrr hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added global notification hook for all backup operations (backup, prune, check) using Shoutrrr with Mattermost webhook. Configuration: - Hook ID: mattermost-notifications - Conditions: * (all operations) - Shoutrrr URL: mattermost://mattermost.pivoine.art/nxsqk4x86jr9bgniheaksem8qy - Template: Shows operation type, plan/repo ID, status, and errors Notifications will be sent for: - All backup operations (17 daily backup plans) - Weekly prune operations (Sundays at 2 AM) - Weekly check operations (Sundays at 3 AM) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- restic/config.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/restic/config.json b/restic/config.json index 51eb405..a4891bc 100644 --- a/restic/config.json +++ b/restic/config.json @@ -1,6 +1,16 @@ { "version": 4, "instance": "falcon", + "hooks": [ + { + "id": "mattermost-notifications", + "conditions": ["*"], + "actionShoutrrr": { + "shoutrrrUrl": "mattermost://mattermost.pivoine.art/nxsqk4x86jr9bgniheaksem8qy", + "template": "Backrest notification:\n{{if .Task.Op.OperationBackup}}Backup {{.Plan.Id}} - {{.Status}}{{end}}{{if .Task.Op.OperationPrune}}Prune {{.Repo.Id}} - {{.Status}}{{end}}{{if .Task.Op.OperationCheck}}Check {{.Repo.Id}} - {{.Status}}{{end}}\n{{if .Error}}Error: {{.Error}}{{end}}" + } + } + ], "repos": [ { "id": "hidrive-backup",