Include repo name with borgmatic info --json output #800
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#800
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'd like to do and why
Hi there,
now that repositories (can) have names in borgmatic's configuration, it would be nice if the json output from
borgmatic info --json
included the repository name next to its id:This would make creating (Prometheus) metrics for backup runs targeting multiple repositories much easier by being able to use a descriptive name to distinguish repos.
Thanks!
Other notes / implementation ideas
No response
Great idea! I have an implementation of this for all borgmatic actions that produce JSON output, but I need to write a few more tests. The new JSON field will be called
label
, as that's what it's called in configuration.Okay, this is implemented in main and will be part of the next release. Thanks again for the suggestion!
Released in borgmatic 1.8.6!