I want to only match wildcard folders but not wildcard files. **/*cache or even **cache works for folders prepended with cache
but **/*cache*/ doesn’t work to match only folders because the trailing / is ignored
Is there anyway to get around this?
Reference
From Documentation https://restic.readthedocs.io/en/latest/040_backup.html
A trailing / is ignored, a leading / anchors the pattern at the root directory. This means, /bin matches /bin/bash but does not match /usr/bin/restic.
I want to only match wildcard folders but not wildcard files.
Can you help summarize your findings, if it helped anything towards your question?
Do I observe correctly that since there are 8 folders in your example tree, all green exclude combinations would work for you?