Dev branch: Backing up C:\mydir\mydata, unable to create \\?\C\Users\

I found a strange error while playing around with the latest dev commit, with Restic cross compiled from Linux to Windows/AMD64. What is the proper way to report it, while the code is still in development?

I run a few git bisect and found 5cff6e08 to be the first commit that gives me this error (my debug executable is called “resticx.exe”):

> mkdir \mydir\mydata

> resticx --repo \mydir\myrepo init
enter password for new repository:
enter password again:
created restic repository 19264c5839 at \mydir\myrepo
Please note that knowledge of your password is required to access
the repository. Losing your password means that your data is
irrecoverably lost.

> resticx --repo \mydir\myrepo backup \mydir\mydata
debug log file d:\debug.log
debug enabled
enter password for repository:
repository 19264c58 opened (version 2, compression level auto)
no parent snapshot found, will read all files
[0:00] 0 index files loaded
Fatal: unable to save snapshot: CreateFile \\?\C:\Users\<myname>\mydir: The system cannot find the file specified.

If necessary, I can provide more details and I have the debug log file.

Thank you!

1 Like

Thanks for bisecting! You can open a bug report here: https://github.com/restic/restic/issues/new

1 Like

Opened bug report #4865.

1 Like