Excluded patterns are not printed in output of create --dry-run --list #590
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#590
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'm trying to do and why
I want to verify that I have set up my patterns file correctly. I want to verify exclusion/inclusion patterns as they relate to my root backup directories.
Steps to reproduce (if a bug)
patterns.lstbelow.config.yamlbelow.borgmatic -c config.yaml create -v -1 --dry-run --list --log-file dryrun.txt --log-file-verbosity 2patterns.lst:config.yaml:Actual behavior (if a bug)
Observe that the
dryrun.txtfile does not contain a list of excluded paths, which should appear in the format:x /etc/crontab(with anxin front).My assertion on the format of the list output is based on this comment.
Expected behavior (if a bug)
The output of
borgmatic create --dry-run --listshould contain paths starting withxif they were excluded by patterns.Environment
borgmatic version:
1.7.2borgmatic installation method:
pip install borgmaticBorg version:
1.2.2Python version:
3.8.6(using pyenv)operating system and version: Ubuntu 20.04
Thanks for filing this. I think there are at least two things going on here:
source_directories, borgmatic passes its own~/.borgmaticsource directory to Borg. A variant of this unfortunate interaction was fixed previously (#574), but it sounds like you've discovered another! So this will need more investigation—and probably another work-around for the Borg bug.Both of these issues are now fixed in master and should be part of the next release. For the second issue, I ended up using a fix very similar to the one in #574 (put source directories into patterns to work around the Borg bug). I've confirmed that excluded files now show up correctly in the file list.
Thank you for the quick turnaround!!
Just released in borgmatic 1.7.3!
witten referenced this issue2023-10-24 17:48:09 +00:00