Excluded patterns are not printed in output of create --dry-run --list
Closedopened 6 months ago by rcdailey · 4 comments
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. 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)
borgmatic -c config.yaml create -v -1 --dry-run --list --log-file dryrun.txt --log-file-verbosity 2
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 an
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 with
xif they were excluded by patterns.
borgmatic installation method:
pip install borgmatic
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!