Allow monitoring hooks to run once per Borgmatic invocation #1339

Open
opened 2026-08-05 17:38:12 +00:00 by sshaikh · 0 comments

What I'd like to do and why

Currently monitoring pings run per config file.

This means you'll get one status/log/check-in in a config file that manages two repos.

If you split this config into two and share the monitoring config between them (using includes, for example), then the monitoring might get confused as it gets hits twice.

The solution is to separate monitoring per file (and repo). This may be unwanted if you are monitoring the borgmatic invocation as a whole rather than on a repo basis.

Not sure what the solution is, apart from a configuration flag indicating that monitoring should run "for all configs", similar to before-everything hooks.

Other notes / implementation ideas

The current behaviour was confirmed here: #1338

### What I'd like to do and why Currently monitoring pings run per config file. This means you'll get one status/log/check-in in a config file that manages two repos. If you split this config into two and share the monitoring config between them (using includes, for example), then the monitoring might get confused as it gets hits twice. The solution is to separate monitoring per file (and repo). This may be unwanted if you are monitoring the borgmatic invocation as a whole rather than on a repo basis. Not sure what the solution is, apart from a configuration flag indicating that monitoring should run "for all configs", similar to `before-everything` hooks. ### Other notes / implementation ideas The current behaviour was confirmed here: https://projects.torsion.org/borgmatic-collective/borgmatic/issues/1338
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
borgmatic-collective/borgmatic#1339
No description provided.