Skip to content

[Regression] restic 0.17.0 on Windows: cannot backup using network drive #4955

@SommerEngineering

Description

@SommerEngineering

Output of restic version

restic 0.17.0 compiled with go1.22.5 on windows/amd64

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

A network share mounted as drive H

Problem description / Steps to reproduce

On my employer's computer, I need to back up my data to a network drive, which is mounted locally as drive H. My restic command backs up files from both my local hard drive and the target drive itself. So, in addition to the backup, other data is also stored on the network drive. This worked flawlessly with restic up to version 0.16.x. However, since version 0.17.0, the following error message appears:

Fatal: unable to save snapshot: nodeFromFileInfo h:\: get EA failed for path h:\, with: get file EA failed with: Incorrect function.

My command:

restic --repo H:\Backup backup --exclude-caches --iexclude-file="c:\Users\xxx\backup-ignore.txt" --files-from="c:\Users\xxx\backup-resources.txt" --tag main --tag data --compression=auto --read-concurrency=6

The entire output looks like this:

pattern "c:\\Users\\xxx\\AppData\\Roaming\\Sublime Text 3\\Local\\" does not match any files, skipping
enter password for repository:
repository 6b02e3c8 opened (version 2, compression level auto)
found 1 old cache directories in C:\Users\xxx\AppData\Local\restic, run `restic cache --cleanup` to remove them
using parent snapshot 9e08dbd0
[0:00] 100.00%  13 / 13 index files loaded
Fatal: unable to save snapshot: nodeFromFileInfo h:\: get EA failed for path h:\, with: get file EA failed with: Incorrect function.

Expected behavior

The backup to and from the network drive should work.

Actual behavior

No snapshot will be created, Instead, we got this error:

Fatal: unable to save snapshot: nodeFromFileInfo h:\: get EA failed for path h:\, with: get file EA failed with: Incorrect function.

Do you have any idea what may have caused this?

@MichaelEischer mentioned on the forum: This looks like a potential bug in the new metadata collection changes in restic 0.17.0

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

Restic makes me happy: Finally a reliable backup software I can rely on. It also runs on all my systems: Linux, Windows, and macOS. Thank you very much for your work and all the time you have invested in the software.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions