Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-09-2011, 11:41 AM   #1
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,045
Blog Entries: 1

Rep: Reputation: 83
gzip: is it possible to get something useful from 3 broken gz files?


This is a question about the postgres DB recovery I asked about a few minutes ago, but it's related to a completely different approach.

We have some .gz files (3, I think) made from pg_dump (daily) that will probably contain _almost_ the same information... Each one of them is broken per se but is there a technique that could be used to see if something can be extracted from them by combining the information from all of them? Perhaps one of them could fill a gap that is in another and so on?

Thanks in advance.
Old 11-09-2011, 09:38 PM   #2
Senior Member
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 209Reputation: 209Reputation: 209
Hi eantoranz,

You could try:

zcat -f broken_postgres.dump.gz
From there, you might need to manually inspect the outputs and paste them together in a sane way.

If it's worth your time, and you're pretty handy with C: checkout the zlib, and hack the executable code to give you debug info about what's up with the broken gz file.

The Gzip format RFC spec might useful at this point too:

There are probably other people who have written tools that do something similar though.


diff, extreme hack, gz, hack

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to see files or gzip files in terminal Linux - Newbie 3 10-27-2008 09:46 PM
[gzip] appears in process table after gzip command completes redmanDBA Linux - General 0 02-26-2008 06:12 AM
GZIP mutiple files at any one time Azzath General 2 10-18-2007 05:20 AM
read gzip files with Mozilla? lugoteehalt Linux - Software 9 11-17-2005 04:27 AM
gzip compressed files jamaso Linux - Newbie 4 01-13-2002 04:59 PM

All times are GMT -5. The time now is 02:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration