Answer the question
In order to leave comments, you need to log in
Linux: A program to generate file recovery information?
Let's say there is a file X.
Is there a program (console unix-style) that would analyze file X and output a certain file Y (much smaller) that would contain information for restoring file X.
If file X turns out to be broken, then it would be possible, using the broken X and file Y, to restore the original file X using the same program.
What thread is standardized for this case?
PS In rar there is an analogue of what I need to "add recovery information", but there it is written directly together with the archive, but a program is needed that would not compress the data, but would just write the information for recovery in the form of a separate file.
Answer the question
In order to leave comments, you need to log in
1. We take an archiver with the ability to supplement information for recovery (for Windows, I would recommend something like RAR 2.70), turn on the compression algorithm = STORING and the recovery algorithm.
2. Above the resulting archive, we launch the second component (probably you will have to add it yourself), which looks for the position of the source file in the binary stream of the archive and cuts out the entire body. Its remains + information about the position of the original body - there is your file Y.
The world has not yet come up with anything easier and better than FEC (Reed-Solomon). It is used both in RAIDs and in DVB streams (from satellite) and wherever data needs to be restored (tar FEC does not use it, but you can drive its output through FEC). Well, the rsbep utility will help. Only, on the contrary, it adds redundancy to file X, and does not create a control file Y.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question