Invalid child node name in windows restore


When I backup this
Restic -r D:\SnapTest --password-file=“Password.txt” backup c:\folder1 \\sharepc\folder2

When I restore
Restic -r D:\SnapTest --password-file=“Password.txt” restore 1836c7ee --target D:\RecupTest
I have this message invalid child node name
the folder1 (local) is restored but not the share folder folder2

What can I do ?

Thanks in advance

do you have shared folders in your backup?
e.g. \server\foo\bar.txt

Yes I have some and it’s the reason ofr my post…
As I read there’s no solution for the moment even if apparently this problem is not recent (several years!)

I’ve totally missed the part \\sharepc\folder2 :man_facepalming:

Unfortunately I do backup of some shares too… :-/
→ I’ve added a comment to the issue…

One workaround is to use a linux machine to restore or mount

I am particularly surprised that this bug, because we can still call it a BUG, has not been corrected for all these years!

Has there been a PR that fixes the problem?

A PR ? What’s this ? :innocent:

As I search for… since the version 0.9.6 the problem exists.

PR is abbreviation for “Pull Request”, in this context it would be a contribution of source code to the restic source code repository at GitHub - restic/restic: Fast, secure, efficient backup program . I simply asked if anyone had contributed code that fixes the problem. If that hasn’t happened, the problem naturally still persists.

I am not sure if it’s a common issue, if it was there would probably be far more reports of it, but regardless the core developers of restic are not Windows users, so it would be good if someone who actually is looks into it and contributes a fix if needed.