Back up and restore Windows Alternate Data Streams#5171
Back up and restore Windows Alternate Data Streams#5171aneesh-n wants to merge 15 commits intorestic:masterfrom
Conversation
|
I removed the old PR and recreated this one as there were too many changes and many of the comments had become irrelevant. |
|
Thanks for implementing this. It seems to function pretty well, from trying a backup, with a patched copy of Restic, and being able to access the NTFS streams, from within a WSL mount of the repository is nice, but I haven't pushed it too hard, and can't give much in the way of code review. |
What does this PR change? What problem does it solve?
Restic did not back up Alternate Data Streams in Windows. Restic now backs up Alternate Data Streams (ADS) and restores them back to the main files.
The Alternate Data Streams are backed up like any other normal files, and the full name of the stream like 'file_name.txt:stream_name' is stored as the name of the file representing the ADS.
During restore, the ADS files are restored and attached to the original files as Alternate Data Streams. For progress and summary, the ADS are not counted in the "filesFinished" and "filesTotal" count, but the sizes of the ADS files are counted.
Was the change previously discussed in an issue or on the forum?
Closes #1401
Checklist
changelog/unreleased/that describes the changes for our users (see template).