Skip to content
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

Back up and restore Windows Alternate Data Streams #4614

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from

Commits on Jan 5, 2024

  1. Configuration menu
    Copy the full SHA
    8e13452 View commit details
    Browse the repository at this point in the history
  2. Add support for backup/restore of ADS

    Modify the Archiver to read the ADS from each file and add them as independent Nodes with the full ADS name as the name of the file.
    During restore the ADS files are restored using the ADS name and that automatically attaches them as ADS to the main file.
    aneesh-n committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    dec0c0f View commit details
    Browse the repository at this point in the history
  3. Ensure ADS is not replaced by main file

    In the case where the main file gets restored after the ADS, it could overwrite and remove the ADS. Hence we try creating the file without the O_CREATE option first and if the file does not exist, then add the option and try again.
    aneesh-n committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    3e5ddc5 View commit details
    Browse the repository at this point in the history
  4. Ensure ADS are not counted as files

    ADS are added as top level files in the repository. However, they must not be counted in the finished and total count, but their sizes must be counted.
    aneesh-n committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    23dc45c View commit details
    Browse the repository at this point in the history
  5. Use main file name for filtering

    The ADS is essentially a part of the main file. Hence during filtering, we need to derive the main file name from the ADS name for filtering to work.
    aneesh-n committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    33de38c View commit details
    Browse the repository at this point in the history
  6. Add test cases for ADS

    aneesh-n committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    73bd0b7 View commit details
    Browse the repository at this point in the history
  7. Fix test cases and lint

    aneesh-n committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    328acd5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b611013 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b0278c8 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2024

  1. Skip ADS in backup summary

    aneesh-n committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    fb2a1e7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    52ef81c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cf331ae View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b8d1f49 View commit details
    Browse the repository at this point in the history
  5. Fix lint issue

    aneesh-n committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    3f7c6cb View commit details
    Browse the repository at this point in the history
  6. Refactor SaveDir in archiver

    Move SaveDir back to archiver and use hooks in the os specific archivers. Rename _unix to _notwin.
    aneesh-n committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    3cc32c0 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2024

  1. Add tests for ADS scenarios

    aneesh-n committed Jan 9, 2024
    Configuration menu
    Copy the full SHA
    1743de5 View commit details
    Browse the repository at this point in the history