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

[contrib][recovery] Add recovery_directory program #2473

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

terrelln
Copy link
Contributor

This program takes a file with concatenated zstd frames and splits the
file up by frame. E.g. if dir.zst has 4 frames:

> ./recover_directory dir.zst recovery/file
Recovering 4 files...
Recovered recovery/file0
Recovered recovery/file1
Recovered recovery/file2
Recovered recovery/file3
Complete

This program takes a file with concatenated zstd frames and splits the
file up by frame. E.g. if `dir.zst` has 4 frames:

```
> ./recover_directory dir.zst recovery/file
Recovering 4 files...
Recovered recovery/file0
Recovered recovery/file1
Recovered recovery/file2
Recovered recovery/file3
Complete
```
@Cyan4973
Copy link
Contributor

Cyan4973 commented Jan 15, 2021

Yes ! That's thoughtful !
While it doesn't restore any directory structure, nor the filenames, at least each file content is regenerated properly, and for some simpler scenarios, it might prove good enough to retrieve a few files which matter, for situations likes #2469.

@terrelln terrelln merged commit 649a766 into facebook:dev Jan 15, 2021
@jin8495
Copy link

jin8495 commented Jan 18, 2021

Thank you so much!! You saved my life XDXD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants