Exclude failing due to confusing expansion of * #132
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#132
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?
I have these exclude lines in my config file:
Somehow all
_build
directories were properly excluded, while allnode_modules
were still present in my backup. Having a look a the exclude file generated by borgmatic, it turns out that thenode_modules
exclude was expanded early while the other one was preserved:While this seems to be the intended behaviour, it's quite confusing and fragile that borgmatic expands the same characters as borg in a preprocessing step, but only if the matches files are present.
I'd suggest to not expand
*
in borgmatic and document that this preprocessing of the exclude list is going on in addition to borg's pattern matching.Thanks for reporting this. In borgmatic source, it looks like the function that expands
*
and~
in paths is called when interpreting bothsource_directories
andexclude_patterns
. So I think the fix would be to continue expanding*
forsource_directories
but not forexclude_patterns
. Andexclude_patterns
still needs to expand~
so as not to regress #58.Okay, this fix is implemented now as described above. It'll be released shortly!
Thanks for reporting this.
Just released in borgmatic 1.2.15.