"borgmatic generate config" output doesn't validate with "borgmatic config validate" #1091
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic#1091
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'm trying to do and why
Issue summary: a working configuration file that is generated by
doesn't validate with
Systems affected:
borgmatic --versions from at least 2.0.3 to 2.0.6.dev0Proof follows:
With the recently upgraded borgmatic to 2.0.3, (and confirmed that the issue still exists in 2.0.6.dev0) I am now getting the following warning messages:
I have been successfully using the following configuration for some time: (Note all commented lines deleted for readability)
So, I used the command
borgmatic config generateagainst the config file, and it generated:Then I ran the validate command:
borgmatic config validateagainst the the generated config. And the following error messages were issued:I have found that if I change the
commands:section to be set to the following, and commented out thebootstrapline, that the configuration validates (and borgmatic successfully runs):Ed
Steps to reproduce
see above
Actual behavior
No response
Expected behavior
a config file that is generated by borgmatic should be able to successfully validate it (pretty obvious :-)
Other notes / implementation ideas
No response
borgmatic version
2.0.3 and 2.0.6.dev0
borgmatic installation method
pip install
Borg version
1.2.4 and 1.4.1
Python version
3.11.2 and 3.8.15
Database version (if applicable)
N/A
Operating system and version
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
Thanks for taking the time to file this and provide all these details! I've got a repro locally, so I'll dig in when I get a chance and figure out what's going wrong.
I've implemented the fix for this in main, and it'll be part of the next release! Thanks again for bringing this to my attention.
Released in borgmatic 2.0.6!