Skip to content

Add support for configuration syntax of borgmatic > 1.8.0#187

Merged
m3nu merged 4 commits intoborgbase:masterfrom
KickerTom:VersionFix
Jan 5, 2026
Merged

Add support for configuration syntax of borgmatic > 1.8.0#187
m3nu merged 4 commits intoborgbase:masterfrom
KickerTom:VersionFix

Conversation

@KickerTom
Copy link
Contributor

Hello,
my take at updating the configuration syntax to the newer borgmatic versions. I went with separating the two config templates, I think it is less messy this way, and should be easier to remove the legacy one once the old version is no longer supported. Also, makes easier to add new options, unsupported by the old version. Downside is the added maintenance burden with keeping the two templates in sync. I think it is worth it.
Should resolve #145.

@LoniasGR
Copy link
Contributor

LoniasGR commented Nov 5, 2025

We tried this and seems to work perfectly without any changes to our configuration. It also gives us the ability to use loki for monitoring, which we were planning to do. Finally, this looks like a good approach to also support borgmatic >2.0 templates.

@artybdrlt
Copy link

In our team, we had to develop our own custom config to support latest borgmatic versions. This is definitely a nice contribution and quite frankly, a much needed one.
Thanks!

@LoniasGR
Copy link
Contributor

LoniasGR commented Nov 26, 2025

@m3nu is there any chance you have some time to check this out? We could also contribute a template with the changes for boegmatic >2.

@LoniasGR
Copy link
Contributor

LoniasGR commented Jan 5, 2026

@m3nu happy new year! Could we get this PR merged?

m3nu and others added 2 commits January 5, 2026 13:15
- Rename templates to version-based naming (config_1.7.yaml.j2)
- Use command module instead of shell for version detection
- Add check_mode: false for version detection task
- Fix deprecated remote_rate_limit → upload_rate_limit for 1.8+

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Incorporate retries and retry_wait options from master
- Adapt new options to both legacy (1.7) and new (1.8+) config formats

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@m3nu
Copy link
Collaborator

m3nu commented Jan 5, 2026

Thanks for this contribution! I had this planned, but the person working on it couldn't finish it. So this is very welcome.

I just made a small change to avoid the shell task and found one wrong option name.

@m3nu m3nu merged commit b1bad2a into borgbase:master Jan 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

config.yaml syntax deprecated

4 participants