restic: "get named security info failed with: Access is denied" on an ExFAT volume, on Windows 10/11

Output of restic version

PS D:\> .\restic_0.17.0_windows_amd64.exe version
restic 0.17.0 compiled with go1.22.5 on windows/amd64

What backend/service did you use to store the repository?

Local file system

Problem description / Steps to reproduce

I decided to try out Restic, on Windows, for the first time, today, as a way of doing portable back-ups, to a USB drive (5TB, single ExFAT partition), from multiple machines, and tried creating an archive, with:

restic_0.17.0_windows_amd64.exe -v backup -r Archive2 --insecure-no-password C:\Users "D:\Components 1"

Whilst this mostly seemed to “work”, in that objects from C:\Users were being collected, and the repository directory was ballooning in size, because of packs being stored, it wasn’t until I tried to later access the repository under WSL, and noticed that no actual snapshots were generated, that I realised that something was silently failing, when it came to trying to access files, from the D:\ volume (which ironically, holds Restic, and the repository, itself).

I assumed that this was because of spaces, in the file path, but after trying several permutations, of absolute, and relative paths, and adding/removing paths, running the aforementioned command under PowerShell, I seem to reliably receive the following error:

D:\>restic_0.17.0_windows_amd64.exe -v backup -r Archive2  --insecure-no-password ".\Components 1"
open repository
repository 16e01133 opened (version 2, compression level auto)
found 1 old cache directories in C:\Users\Surface\AppData\Local\restic, run `restic cache --cleanup` to remove them
no parent snapshot found, will read all files
load index files
[0:00] 100.00%  1 / 1 index files loaded
start scan on [.\Components 1]
start backup on [.\Components 1]
scan finished in 0.146s: 6 files, 80.880 KiB
error: nodeFromFileInfo Components 1: get EA failed for path Components 1, with: get file EA failed with: Incorrect function.
Fatal: unable to save snapshot: snapshot is empty

Expected behavior

I’d expect that Restic would make a valiant attempt to access the files, on the ExFAT volume, and add them into a snapshot, and at least give warnings about any files that it can’t access, with, or without Administrator privilages.

Actual behavior

As in aforementioned Problem description.

Do you have any idea what may have caused this?

This seems to be related to the way that Restic grovels for file metadata, and I assume it does something, in a way that assumes the use of NTFS, although I have no way of being able to debug this, with native tooling, right now.

Did restic help you today? Did it make you happy in any way?

The logo is definitely cute, at least. The software itself seems pretty promising, as a portable, cross-platform, single-file back-up/archival solution, given that my usual go-to is BorgBackup. 😃

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (15 by maintainers)

Most upvoted comments

Should be fixed by https://github.com/restic/restic/pull/5123 . Please give it a try.

To build the PR, download the go compiler from https://go.dev/dl/, download the code from the PR (make sure to get the correct branch) and build restic using go build ./cmd/restic.

Should be fixed by #5123 . Please give it a try.

To build the PR, download the go compiler from https://go.dev/dl/, download the code from the PR (make sure to get the correct branch) and build restic using go build ./cmd/restic.

The compiled Windows version of your branch worked well, the messages no longer appear ((I only made a backup of a VeraCrypt container mounted as ‘removable’, containing a NTFS partition, that’s all I tested). Thank you very much!

Hey. Thanks for the reply there. I did just try backing up to an NTFS volume, and that’s not the issue, because it does the same thing. I’m still using the same version.

vmlemon, that’s a good idea. I did try to set up Macrium when I set up a new computer recently, but no free versions are still available to download, anywhere that I could find. I was unhappy with them for requiring people to pay $70 or whatever in order to access backups that they had created in the past for free. So I pretty much wrote them off altogether. I think that the software is decent, but the company I do not trust. I might have even considered it if they’d apologized, and either offered the last free version or given me a discount. But they were dismissive.

Since this is a first backup of a computer, rather than have to get restic squared away, I did run Clonezilla and get what appears to be a nice clean image. So I have that if I need it, and the Restic files are easier to restore one-by-one.

I think the Restic backup might actually work. Every error is about metadata – not DATA. Windows now has a bunch of zero-length files that are not even shortcuts, related to their app store and the like. They are not for users to mess with, and I think they might confuse some applications that are not Windows-specific. I don’t know that they have metadata because they are not normal, real files. The vast majority of the drive backed up fine.

Clonezilla of course cannot back up while you’re using Windows. And I found out that it is not friendly with Bluetooth keyboards, touchscreens, or mice. I had to dig out an old USB keyboard. Plus, although there is a nice mounting utility, browsing files backed up with Restic is a lot faster (and doesn’t require you to cache the entire thing).

There are still some commercial backup utilities like AOMEI and Todo that provide “free” versions. I believe those are Chinese companies. But after wrangling with Acronis for years, open source would be wonderful. Acronis is not only bloated and buggy, and for example often prevents the system from shutting down, but if you want to access backups you have to PAY ACRONIS to install that bloated, buggy mess on the new computer. So Macrium, Acronis, no thanks.

Restic, Clonezilla (partclone), I think it’s worth a little extra effort in order to spare myself some headaches later on.

I really appreciate all that open-source authors do. They are heroes of mine. There is some really incredible open-source software which is the difference between night and day in my computing experience. So, again, thank you!