I take it back…
–exclude=“Temporary Internet Files/**” is NOT working. Even with the trailing “\
” left off of the user profile path.
I get “Internet does not exist, skipping” back.
Has anyone successfully excluded directory paths with spaces in them on Windows??
The full command I’m trying to run is:
restic.exe backup --cleanup-cache C:\Users --tag USER_PROFILE --iexclude="C:\Users\admin" --iexclude="C:\Users\administrator --iexclude="C:\Users\mss*" --iexclude="*.ost" --iexclude="*.tmp" --iexclude="Cache\**" --iexclude="Copitrak\LOGGING\**" --exclude="Code Cache\**" --iexclude="GPUCache\**" --exclude="Media Cache\**" --iexclude="Temp\**" --exclude="Temporary Internet Files\**" >>\\san\data\.restic\logs\%USERNAME%-%COMPUTERNAME%.LOG
OR
restic.exe backup --cleanup-cache C:/Users --tag USER_PROFILE --iexclude="C:/Users/admin" --iexclude="C:/Users/administrator --iexclude="C:/Users/mss*" --iexclude="*.ost" --iexclude="*.tmp" --iexclude="Cache/**" --iexclude="Copitrak/LOGGING/**" --exclude="Code Cache/**" --iexclude="GPUCache/**" --exclude="Media Cache/**" --iexclude="Temp/**" --exclude="Temporary Internet Files/**" >>\\san\data\.restic\logs\%USERNAME%-%COMPUTERNAME%.LOG
Which comes back with:
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.