rsync - How to exclude wildcard directory but include wildcard files using rdiff-backup? -
I'm using really awesome simple powerful backup tool though I'm fighting with Wild Card Globe Pattern. The structure is: / data / aaa / cache / data / bbb / cache / data / ccc / cache etc .... each cache directory The original files and cache files in the original files are named only 1.jpg , 2.png , 3.gif , and so on. is. The cache file contains a string connected to some basic file name. So I want to backup all / data / * / cache directories, but only include the original files, not the cache files. I am using this command: rdiff-backup --exclude ** / cache --include ** / cache / + ([0-9]). + ([Az]) / data / backup but rdiff-backup returns this and I'm lost: initial backup should be interrupted There are ... Fatal error: Final selection expression: The globe in the command line includes: ** / cache / + ([0- 9]). ([A-z]) Specifies that files must be included. By default all files are included, so the expression is meaningless because it's proba...