Backing up data on Windows from SMB share to local drive

Hi,

I’m trying to backup data that is on an SMB share that is mounted on a Windows 10 system to an USB drive local to that system, but I get a weird error:

PS C:\Users\[...]\Desktop\restic> .\restic.exe -r D:\ResticBackup --verbose backup Z:\subfolder_from_share
open repository
enter password for repository:
repository 1abe79a7 opened (version 2, compression level auto)
no parent snapshot found, will read all files
load index files
[0:01] 100.00%  81 / 81 index files loaded
start scan on [Z:\subfolder_from_share]
start backup on [Z:\subfolder_from_share]
scan finished in 1.361s: 0 files, 0 B
Fatal: unable to save snapshot: nodeFromFileInfo Z:\: get EA failed while opening file handle for path Z:\, with: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.

It looks like restic is accessing Z: which is the mounted SMB share and some error occurs, but actually I’m just trying to backup a subfolder of Z.
Any idea?

Thanks,
Lukas

Some other program has files open on Z: drive and prevents access.

That’s what I thought as well, but I did not have another program running (at least I didn’t start one on purpose, but Windows does weird things maybe) and I wonder why restic wants to grap Z: eventhough I’m just backing up Z:\some_subfolder.

Restic also collects metadata about the paths leading to the backup source folders. This is necessary to properly arrange them in a virtual filesystem tree in the snapshot.

This looks like a potential bug in the new metadata collection changes in restic 0.17.0, please open an issue on Github.

I created issue 4955: [Regression] restic 0.17.0 on Windows: cannot backup using network drive · Issue #4955 · restic/restic · GitHub