LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-03-2004, 12:12 PM   #1
Johnny Mac
LQ Newbie
 
Registered: Nov 2004
Location: USA
Posts: 7

Rep: Reputation: 0
Unhappy help with gzip


I needed to wipe and reload a box today and quickly gzipped some critical directories I needed to offload before wiping. Like an idiot, I neglected to tar the directory structure before zipping. I figured that the recursive "-r" would preserve my file structure. Imagine my surprise when I extracted my gzip files only to find that the entire directory structure and files contained were lumped into one useless file. I have scoured google searching for assistance with this but have not had any luck. Can anyone here offer a solution that will allow me to return my gzipped directory structure back into a directory structure?

Days of work have been lost if I am unable to restore this data. Thanks in advance for any assistance! :-)
 
Old 11-03-2004, 12:20 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,535

Rep: Reputation: 148Reputation: 148
What was the command you tried? I have just checked and when I run something like
gzip -r *
I get a collection of gziped files in their directories. You have probably used a different command. What was it?
 
Old 11-03-2004, 02:27 PM   #3
Johnny Mac
LQ Newbie
 
Registered: Nov 2004
Location: USA
Posts: 7

Original Poster
Rep: Reputation: 0
Here is what I used to zip the directory...

gzip -crv <directory> > directory.gz

Last edited by Johnny Mac; 11-03-2004 at 02:28 PM.
 
Old 11-08-2004, 02:22 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,535

Rep: Reputation: 148Reputation: 148
All right...There's no info about the file strcture in the archive, so you can't get it back automatically. All you can do is to split them manually. Sorry.
 
Old 11-09-2004, 06:08 PM   #5
Johnny Mac
LQ Newbie
 
Registered: Nov 2004
Location: USA
Posts: 7

Original Poster
Rep: Reputation: 0
I was afraid of that. Thanks for the input though.
 
  


Reply


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
Solaris 8 gzip issues- cannot gzip -d lynx sixosix Solaris / OpenSolaris 4 03-13-2005 03:17 PM
gzip cuco76 Linux - Newbie 2 11-21-2003 10:09 PM
gzip Robin01 Linux - Newbie 4 09-13-2003 04:57 AM
Gzip InfoLock Linux - Software 4 09-02-2003 08:20 AM
gzip boyinfrance Linux - Newbie 3 05-19-2002 08:42 AM


All times are GMT -5. The time now is 08:03 PM.

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