Unable to include a directory within an excluded directory #1901
Answered
by
real-yfprojects
benjamindaines
asked this question in
FAQ
|
I am trying to exclude the .cache directory in my home directory, but I do want the yay directory within .cache to be backed up. I've tried adding it to the source directories, and have tried using +/home/ben/.cache/yay* within the excludes, however it does not back up. This seems to be the proper usage of the + according to borg documentation. Suggestions? Thanks. |
Answered by
real-yfprojects
Feb 13, 2024
Replies: 1 comment 6 replies
|
Vorta passes your excludes to borg using the re:^/home/ben/.cache/(?!yay) |
6 replies
Answer selected by
benjamindaines
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vorta passes your excludes to borg using the
--exclude-fromcmd option. Thus the advanced pattern style using+/-/R/... doesn't work.You can still achieve the desired behaviour: