Overrides are broken with old style config file #829
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#829
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'm trying to do and why
Run checks using an override
Steps to reproduce
borgmatic --config /etc/borgmatic.d/common/borgmatic.yml --log-file /var/log/borgmatic.log --log-file-verbosity 1 --verbosity 2 --override "consistency.checks=[{name: 'repository'}, {name: 'archives'}]" --repair check
config file:
Actual behavior
Checks don't run:
Expected behavior
Checks should actually run
Other notes / implementation ideas
No response
borgmatic version
1.8.8
borgmatic installation method
pip
Borg version
1.2.7
Python version
3.9.2
Database version (if applicable)
No response
Operating system and version
Debian 11
There were a lot of messages about deprecated config styles, so I updated all of the config files I have, and things seem to work fine now. Figured I'd report this anyway just in case you want to fix it, but feel free to close.
Thanks for bringing this to my attention! Based on some initial investigation, it looks like borgmatic supports overrides with deprecated section names applying to sectionless config or sectionless overrides applying to config with deprecated section names—but not overrides with deprecated section names applying to config with deprecated section names.
Just for the sake of completion, I'll look into how feasible it would be to fix this.
Fixed in main! Thanks again.
Released in borgmatic 1.8.9!