I’m trying to run Restic on multiple PCs at once, using paexec.
Long story short, I’m trying to pass:
–exclude “\Temporary Internet Files”
in some fashion to get it to exclude ANY folder (not file, just folders) with that name. I’m trying to get ALL user profiles, and so I don’t want to be specific on the path.
I’ve tried:
–exclude “Temporary Internet Files”
–exclude “\Temporary Internet Files”
–exclude “.\Temporary Internet Files”
–exclude “/Temporary Internet Files”
–exclude “./Temporary Internet Files”
EDIT: Also tried --exclude “Temporary\ Internet\ Files”
all to no avail. It responds with:
Internet does not exist, skipping
Files does not exist, skipping
Then a fatal error and quits.
I’m guessing it doesn’t see “Temporary Internet Files” as a single string. Is there something I should be using instead of quotes?
EDIT: Okay, apparently even --exclude “Temp” doesn’t work. Says it doesn’t exist, and skips…
Nevermind. Figured it out. Before all the excludes, I had “C:\Users\” - and it needed to be “C:\Users” without the trailing “\”.
So, it was treating all the excludes as paths to include, or something to that effect. It’s working now. Leaving my headache here for others to learn from my many mistakes lol.
Cache/** --iexclude=GPUCache\** --exclude=Media does not exist, skipping Cache/** --iexclude=Temp\** --exclude=Temporary does not exist, skipping Internet does not exist, skipping Files/** >>\\san\data\.restic\logs\mss-MSS.LOG does not exist, skipping
I’ve tried making them all forward-slashes, or all backslashes. Doesn’t matter, same errors. If I take the excludes out that have spaces, the command passes successfully with either forward or back slashes.