Excluded patterns are not printed in output of create --dry-run --list #590
Loading…
x
Reference in New Issue
Block a user
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.lst
below.config.yaml
below.borgmatic -c config.yaml create -v -1 --dry-run --list --log-file dryrun.txt --log-file-verbosity 2
patterns.lst
:config.yaml
:Actual behavior (if a bug)
Observe that the
dryrun.txt
file does not contain a list of excluded paths, which should appear in the format:x /etc/crontab
(with anx
in 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 --list
should contain paths starting withx
if they were excluded by patterns.Environment
borgmatic version:
1.7.2
borgmatic installation method:
pip install borgmatic
Borg version:
1.2.2
Python 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~/.borgmatic
source 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