Recover Corrupted . gz File

Asked

Viewed 605 times

4

I have a file in . gz which is corrupted.

Is it possible to extract data from this file? Even if it is partially?

This file is a sql database dump.

Thanks.

1 answer

3


Yes, it is possible to try to recover a . gz file, but expect to have large data losses from the middle of it.

First, make a copy of the file and work only with the copy.

Make a

gunzip  < arquivo_com_erro.gz > arquivo_saida

And your output file will have everything it was possible to recover until the first failure.

To recover what is after failure, one method is to compile the gzip program with a few more lines of code. For this, I suggest following the recommended in http://www.gzip.org/recover.txt (in English, and I already say that it will take time and will not be easy)

Another solution: see the tools available on http://www.urbanophile.com/arenn/coding/gzrt/gzrt.html

  • 1

    This worked and I was able to open the ". sql" file that was inside it. Several unknown characters (which I believe to be from the corrupted party) have appeared. I’m going to go up the base now (which is 1.4GB more) and see where it goes. Thanks for the help.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.