/etc/borgmatic/config.yaml: Configuration sections (like location: and storage:) are deprecated #744
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#744
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
Running backup with Borgmatic 1.8. The config is 1.7 format, and I am trying to convert to 1.8 format
Steps to reproduce
Updating the config.yaml format
Old format:
location:
source_directories:
New format:
source_directories:
Actual behavior
/etc/borgmatic/config.yaml: Error parsing configuration file
An error occurred while parsing a configuration file at /etc/borgmatic/config.yaml:
while parsing a block mapping
in "", line 12, column 1
/*** line 12, column 1 is the new "source_directories:" line ***/
Expected behavior
No response
Other notes / implementation ideas
No response
borgmatic version
1.8.0
borgmatic installation method
DNF on CloudLinux 9
Borg version
1.2.4
Python version
3.9.16
Database version (if applicable)
No response
Operating system and version
CloudLinux 9.2
I'm not sure exactly what's going on with parsing your configuration file, but I imagine there's some problem with its formatting. Would you be able to attach your exact configuration file (with any sensitive information redacted) so that I can take a look at it and try to reproduce the problem locally? Alternatively, you can link to your config on a gist or pastebin service if you'd prefer. Thank you!
I attached the config file. The errors are:
borgmatic --verbosity 2
/etc/borgmatic/config.yaml /etc/borgmatic.d /root/.config/borgmatic/config.yaml /root/.config/borgmatic.d: No valid configuration files found
summary:
/etc/borgmatic/config.yaml: Loading configuration file
/etc/borgmatic/config.yaml: Error parsing configuration file
An error occurred while parsing a configuration file at /etc/borgmatic/config.yaml:
while parsing a block mapping
in "", line 1, column 1
did not find expected key
in "", line 11, column 2
/etc/borgmatic/config.yaml /etc/borgmatic.d /root/.config/borgmatic/config.yaml /root/.config/borgmatic.d: No valid configuration files found
Need some help? https://torsion.org/borgmatic/#issues
The error message you're getting sure isn't helping, but I think the problem is that some of your options are not fully left-aligned in your configuration file. In other words, options like
one_file_system
andexclude_caches
(and all the following options) have extra spaces before them that should be removed. Once you remove those spaces and the options are properly lined up, I'm pretty sure your configuration file will work! Let me know if that does it for you.Thank you. It works when I deleted all spaces before each line.
Awesome, glad to hear it! Feel free to file another ticket if you encounter any other problems.