Add Borg 1.4.2 features #1175

Closed
opened 2025-11-01 04:29:35 +00:00 by witten · 5 comments
Owner

What I'd like to do and why

Add relevant Borg 1.4.2 features to be wrapped in borgmatic:

BORG_MSGPACK_VERSION_CHECK=no to optionally disable the msgpack version check; default is “yes”; use at your own risk, #9109.

This could be a borgmatic configuration option that sets an environment variable when invoking Borg. Lots of existing examples of that.

create: add --files-changed=MODE option (controls how borg detects whether a file has changed while it is being backed up)

This could be a configuration option as well.

Other notes / implementation ideas

No response

### What I'd like to do and why Add relevant [Borg 1.4.2 features](https://borgbackup.readthedocs.io/en/1.4.2/changes.html#version-1-4-2-2025-10-31) to be wrapped in borgmatic: > BORG_MSGPACK_VERSION_CHECK=no to optionally disable the msgpack version check; default is “yes”; use at your own risk, #9109. This could be a borgmatic configuration option that sets an environment variable when invoking Borg. Lots of existing examples of that. > create: add --files-changed=MODE option (controls how borg detects whether a file has changed while it is being backed up) This could be a configuration option as well. ### Other notes / implementation ideas _No response_
Contributor

Hey! I'm a beginner in open source (Coming over from GSoC) and I'd love to work on this issue. I have implemented the '--files-changed=MODE' flag already, however I'm not sure where to get started on the MSGPACK one.

Hey! I'm a beginner in open source (Coming over from GSoC) and I'd love to work on this issue. I have implemented the '--files-changed=MODE' flag already, however I'm not sure where to get started on the MSGPACK one.
Author
Owner

Welcome! So the existing examples for borgmatic options that set environment variables passed to Borg are here: https://projects.torsion.org/borgmatic-collective/borgmatic/src/branch/main/borgmatic/borg/environment.py#L6 ... And then you can create a new option in schema.yaml. Also check out the source code reference if you haven't already. Let me know if you have any questions.

Note that borgmatic isn't participating in GSoC this year, but you are still more than welcome to submit PRs.

Welcome! So the existing examples for borgmatic options that set environment variables passed to Borg are here: https://projects.torsion.org/borgmatic-collective/borgmatic/src/branch/main/borgmatic/borg/environment.py#L6 ... And then you can create a new option in [schema.yaml](https://projects.torsion.org/borgmatic-collective/borgmatic/src/branch/main/borgmatic/config/schema.yaml). Also check out the [source code reference](https://torsion.org/borgmatic/reference/source-code/) if you haven't already. Let me know if you have any questions. Note that borgmatic isn't participating in GSoC this year, but you are still more than welcome to submit PRs.
Contributor

That's fine, I still managed to get valuable experience regarding contributing. I've submitted a PR (correctly I hope?) and I'd like to
know if theres any corrections.

That's fine, I still managed to get valuable experience regarding contributing. I've submitted a PR (correctly I hope?) and I'd like to know if theres any corrections.
Author
Owner

Thanks again! This is merged in main and will be part of the next release.

Thanks again! This is merged in main and will be part of the next release.
Author
Owner

Released in borgmatic 2.1.3!

Released in borgmatic 2.1.3!
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
borgmatic-collective/borgmatic#1175
No description provided.