New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does restic back up alternate data streams attached to NTFS files? #1401
Comments
While I don't have any experience with WSL, so I don't know that. What I do know is that restic, at least for now, does not backup or restore NTFS extended attributes and NTFS alternate data streams. On Windows, when run as a native Windows binary, it'll save folders and files (with the "content" of the files). Adding alternate data streams would require modifying the repository format. And to be honest, I'm not convinced that it's worth the effort. |
There is a similar feature to alternate data streams on macOS, called resource forks, which may include e.g compressed data if using HFS Plus Compressed, alternative icons for files... A similar question can be raised about filesystem extended attributes, which on macOS may include hiding files via chflags(1) as well as hiding extensions via SetFile(1). Those are visible using |
A possible extension to support alternate data streams, as well as other data (acl, permissions, attributes etc.) would be to use the windows backup api (see https://github.com/Microsoft/go-winio/blob/master/backup.go ) |
See: https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/
I have been using restic to back up my Windows PC, and wondering if it will successfully back up my Windows Subsystem for Linux folder from the Windows environment. If the answer is "yes," then I guess nothing needed here :)
But, if the answer is "no" I would want to see if the recommendation is
Thanks
The text was updated successfully, but these errors were encountered: