I ran one of my occasional offsite restic backups twice this evening. I got this error on the second run. I don’t know if there was an error on the first run or not as I didn’t look at the console. I know that a lot of data was added to the repository on the first run, so I think it worked ok.
Hm, interesting. Can you please run this again with -v -v and paste the lines around that error so we can see which file restic is trying to access? Is there a file called aux in c:\images somewhere?
Yes, there is a file called aux.jpg nested down about four levels. I can’t view, delete, or even look at the properties of this file. So something is screwy on my file system which I need to fix. Sorted - thanks!
Oh wow! I had no clue about those restrictions. (Why is Windows the worst? Sorry, can’t help but think that’s… a really sad set of limitations.) Thanks for the link… TIL.
I’m still a bit puzzled. The file is called aux.jpg, which is different from the forbidden name aux. And also, restic’s’ error message talks about \?\aux, without a file extension. How did that happen?
I don’t have an answer sorry. All I know is I tried multiple methods to delete this file, including “del”, “del” as administrator, the same in OS recovery mode, other commands to change permissions, and nothing worked until I used the ?\ filename format.
Hi I am facing a similar issue, this time it is with files in the downloads folder and from what I can see, they are not restricted in any way, they are just images I use for work. Not sure what to make of it.I have attached the verbose screenshot from the Windows Powershell.
Thank you.
“The system cannot find the file specified” makes it sound like something else deleted the file in between restic listing the parent directory’s contents, and trying to read the file.
Does this error happen every time you run the backup?
Hi, thanks for your response. The above error happens every time I run the backup. I am able to browse to the folder and view the files but for some reason restic is unable to access it.
Could they be special files, eg. symlinks/junctions, or have extended attributes? I found some issues about these types of files - here and here, but I’m not sure whether they are fully supported by restic.
It looks like this is not a restic issue in my case. For some reason windows thinks that this path does not exist even though I was able to access the folder and the files stored within it.
I was clearing some of the old files and this folder was one of it. I attempted deleting this folder and windows does not allow me to do that. I have attached a screenshot of the same.
I was able to remove those folders using the bash command in windows, none of the windows tools removed those folders. I believe if I ran restic under linux I would not have encountered this issue. Though unfortunately I am unable to install restic under WSL for the moment.