Restore metadata fail on windows 10/11

Hi everyone.
I have restic 0.17.1 (v0.17.1-0-g975aa41e1) compiled with go1.23.2 on windows/amd64
from the backend is restic-server: 0.13.0
I’m new to restic so I do not understand this behaviour
on Mac backing up and restoring works properly, but for windows there are some metadata errors:

C:\Program Files (x86)\....> .\restic.exe restore --target E:/Vitaliy/temp_restic_restore_test --include /C/Users/kvetals/Downloads/055.jpg 1de5081d38e96249344b5fc6c2960603e0036cc47faf91fefcdb13fa7f456a62 -v -v
repository c0a647b6 opened (version 2, compression level auto)
[0:00] 100.00%  12 / 12 index files loaded
restoring snapshot 1de5081d of [C:\] at 2024-10-14 11:54:55.5267593 +0300 EEST by WIN-5BFUR56GLA9\kvetals@WIN-5BFUR56GLA9 to E:/Vitaliy/temp_restic_restore_test
unchanged \C\Users\kvetals\Downloads\055.jpg with size 2.952 MiB
restored  \C\Users\kvetals\Downloads
restored  \C\Users\kvetals
ignoring error for \C\Users: multiple errors occurred: [error restoring creation time for: E:\Vitaliy\temp_restic_restore_test\C\Users : Access is denied.; error restoring file attributes for: E:\Vitaliy\temp_restic_restore_test\C\Users : Access is denied.; error restoring security descriptor for: E:\Vitaliy\temp_restic_restore_test\C\Users : set named security info failed with: Access is denied.]
restored  \C
Summary: Restored 3 / 0 files/dirs (0 B / 0 B) in 0:00, skipped 1 files/dirs 2.952 MiB
Fatal: There were 1 errors

It restores files but errors about metadata is still there.
I’ve tried to shutdown Windows Defender - nothing changed.
If anyone faced the problem I would be gratefull for help.

That looks like there’s something special about the \C\Users folder that causes Windows to deny restic from restoring some of the metadata. Feel free to open a Github issue, although I’m not entirely sure how much we’ll be able to do here.

You could skip restoring the leading folders by specifying the snapshot as <snapshotid>:/C/Users/kvetals. (and remove that prefix from the include path)

Thanks, but because of absence of replies for too long period, for now I swiched to latest from previous client version (16) for restoring and it works fine.