LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-09-2011, 11:41 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

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


Hi!

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
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 206Reputation: 206Reputation: 206
Hi eantoranz,

You could try:

Code:
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. http://zlib.net/

The Gzip format RFC spec might useful at this point too: http://www.gzip.org/zlib/rfc-gzip.html#file-format

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


Reply

Tags
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 chipstein@aol.com 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 10:44 AM.

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