You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
restic 0.9.6 compiled with go1.13.4 on windows/amd64
How did you run restic exactly?
In powershell, .\restic -r F:\Backup backup C:\. This directly followed installation, and I haven't done any modification to any configuration. I was just backing up my files when I ran into this rabbit hole :'D
What backend/server/service did you use to store the repository?
Filesystem
Expected behavior
No error - it should backup the directory with ease.
Actual behavior
Restic fails on a "fatal" and fails at backing up.
Fatal: unable to save snapshot: node "a" is already present
enter password for repository:
repository 3682bc9a opened successfully, password is correct
Fatal: unable to save snapshot: node "a" is already present
Do you have any idea what may have caused this?
File path expansion.
Do you have an idea how to solve the issue?
Ensure that the \\?\ prefix is being used at all times when dealing with filepaths on Windows. As per the documentation,
Because it turns off automatic expansion of the path string, the "\\?\" prefix also allows the use of ".." and "." in the path names, which can be useful if you are attempting to perform operations on a file with these otherwise reserved relative path specifiers as part of the fully qualified path.
A proof of concept of the above concept working can be shown in this example (Note: I am not a go programmer):
Closing this as duplicate of #2745 . Restic already prepends \\?\ to paths, the problem is that restic currently uses a windows function (too often) that is canonicalizing paths too eagerly.
Output of
restic version
restic 0.9.6 compiled with go1.13.4 on windows/amd64
How did you run restic exactly?
In powershell,
.\restic -r F:\Backup backup C:\
. This directly followed installation, and I haven't done any modification to any configuration. I was just backing up my files when I ran into this rabbit hole :'DWhat backend/server/service did you use to store the repository?
Filesystem
Expected behavior
No error - it should backup the directory with ease.
Actual behavior
Restic fails on a "fatal" and fails at backing up.
Steps to reproduce the behavior
Open up powershell and run the following:
Do you have any idea what may have caused this?
File path expansion.
Do you have an idea how to solve the issue?
Ensure that the
\\?\
prefix is being used at all times when dealing with filepaths on Windows. As per the documentation,A proof of concept of the above concept working can be shown in this example (Note: I am not a go programmer):
Did restic help you today? Did it make you happy in any way?
:P
The text was updated successfully, but these errors were encountered: