I am using rsync with the
include-from="external file" option. Apart from that my problem is almost identical to this one.
I want to backup a very specific subfolder, while generally not backup any hidden folders. The only way I managed to do this is painstakingly this way:
+ home/*/.config/libreoffice/ + home/*/.config/libreoffice/4/ + home/*/.config/libreoffice/4/user/ + home/*/.config/libreoffice/4/user/registrymodifications.xcu # hide the rest ( .local, .wine, most of .config ...) - home/*/.*/
Without the 3 initial lines,
registrymodifications.xcu will be excluded, because its higher-level directories are unmatched until they are “hit” by the very last line... so by my experience I must whitelist them all, piece by piece.
Is there a less painful way to do this? (I'd still want to keep all my backup rules in a single, external file...)