I wanted to specify $RECYCLE.BIN at the root of the file system only.
In Linux this would be /$$RECYCLE.BIN (the double $ to escape it in restic) but that didn’t work for Windows.
What I found out I needed to do was specify this: C:\$$RECYCLE.BIN
I wouldn’t expect that since I already specified C:\ as the start of the tree to backup. I wanted something like this: \$$RECYCLE.BIN so that I could use it when I backup D:\ as well. But I think I can live with putting the C:\ in the path.
Yep, you’ve run into a corner case with Windows drive letters. I could argue that restic works this way so that you can chose to exclude C:\$RECYCLE.BIN, but still backup D:\$RECYCLE.BIN when running restic backup c:\ d:\, but it’s rather accidental that it works this way
For the clarification: Where did you specify that pattern? I suspect in an exclude file, correct? restic handles $ slightly different when passed in as command-line arguments or from files, in the latter case environment variables are expanded so you need to escape the $.
Yep. As I indicated, it isn’t too much of a restriction. I just didn’t expect the need to have C:\ start each of my exclude lines where I want to anchor it to the root. But now that I know, I can deal with it.