Allow monitoring hooks to run once per Borgmatic invocation #1339
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic#1339
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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'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-everythinghooks.Other notes / implementation ideas
The current behaviour was confirmed here: #1338