Add Borg 1.4.1 feaures #1078
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#1078
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'd like to do and why
Support relevant Borg 1.4.1 features and changes natively in borgmatic:
Other notes / implementation ideas
No response
First: This requires only edits to to config right? Add those two options to the rest of the bunch?
Second: This needs the addition of a new env variable in
environment.py, that takes the config value true/false from config right? Does it need any modification toborg compact?Third: dry-run is currently implemented from config in
borg compactso does this mean using the flag directly?PS: I couldn't find
--dry-runin borg2 common options. I will have to install borg2 in a VM and test it out.Edits to config and then passing the relevant flags to
borg prune.A new environment variable in
environment.py, yes. But unless I'm missing something, I don't think it requirescompactchanges.I think it means passing
--dry-runtoborg compact, but only if the feature isavailable()in the current version of Borg in use.It might not be implemented yet in Borg 2.
If you haven't started the PR work for this yet, I'd be happy to take it on.
It's already being taken care of here, right?
flag_pairs = (('--' + option_name.replace('_', '-'), str(value))for option_name, value in config.items()if option_name.startswith('keep_') and option_name != 'keep_exclude_tags')Oh good call.. I had forgotten about that code. Then yes, editing the configuration schema (and manually testing the new options) should be all that's necessary for this one!
I haven't started the PR on this one.. Feel free to take it!
This is now implemented by @VandalByte in main and will be part of the next release!
Released in borgmatic 2.0.5!