exclude_from in config file accepts only absolute full path #1301
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 project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
borgmatic-collective/borgmatic#1301
Loading…
Add table
Add a link
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'm trying to do and why
Dear developers,
First, thank you for developing borgmatic. I am learning it at the moment but looks very promising.
I have followed the documentation and set up my borgmatic configuration file. I used the
exclude_fromsection to add an exclusion file containing file paths. When I provide an exclusion file path using~and$HOME, borgmatic exited because it was not able to access the file. It stopped exiting only when I provided an absolute full path.Steps to reproduce
Add the following lines in the configuration file of borgmatic after creating a
$HOME/.borgmatic_excludes.listfile.To solve the issue, the following works:
Actual behavior
Expected behavior
Borgmatic should expand the
~or$HOMEvariable.Other notes / implementation ideas
No response
borgmatic version
2.1.5
borgmatic installation method
pip install
Borg version
borg 2.0.0b21
Python version
Python 3.14.4
Database version (if applicable)
No response
Operating system and version
AlmaLinux 9.7 (Moss Jungle Cat)
Thanks for filing this! It seems like a reasonable addition to me, especially since the
exclude_patternsoption already supports tildes. I'll have a look at what it would take to add this.This is implemented in main and will be part of the next release! Thanks again for the suggestion.
Released in borgmatic 2.1.6!