Let’s say I have 25 user accounts in /home and each account might have a directory names .cache that I want to exclude. For example:
/home/Nancy/.cache
/home/Bill/.cache
/home/Frank/.cache
/home/Nick/.cache
How would this be expressed in my exclusions? Would this work?
/home/*/.cache
What if I only want to exclude those directories that start with N? Would this work?
/home/^N*/.cache