I’m trying to figure out how the --exclude syntax works, and I am struggling a bit. What I’m trying to do is to exclude a folder that is in the root of the working directory, but if a folder with the same name (or file with the same name) is found anywhere else, it should not be excluded. Then there are some more things I’m trying to exclude.
But, my question is about seeing which files are excluded by the exclude syntax. I created a little test working directory and repo to experiment with. What I would like (for this experiment and for my actual setting, is to get a list of all files/folders excluded by the --exclude syntax (or --exclude-file). I tried --verbose=3, but that did not work. Here’s what I was hoping for:
$ export RESTIC_REPOSITORY=repo $ restic init [...] $ mkdir wd $ touch wd/bla.txt $ touch wd/ign.txt [...] $ restic --exclude=ign.txt --verbose=3 backup wd
[...] new /wd/bla.txt new /wd/ [...]
[...] new /wd/bla.txt new /wd/ excluded /wd/ign.txt [...]