Tagged Questions
7
votes
1answer
143 views
Under what circumstances does gunzip & tar xf work but tar xzf fail?
To illustrate the point: I have downloaded the LEDA library from the company's website. Using tar -xzf on it fails:
$ tar -xzf LEDA-6.3-free-fedora-core-8-64-g++-4.1.2-mt.tar.gz
tar: This does not ...
3
votes
8answers
1k views
Triple compression and I only save 1% in space?
I've been trying to save space on my linux server, and I had a folder containting, in subfolders, 22GB of images.
So I decided to compress them.
First I used tar:
tar -zcf folder.tar folder
Then ...
2
votes
4answers
1k views
tar: Removing leading `/' from member names
root@server # tar fcz bkup.tar.gz /home/foo/
tar: Removing leading `/' from member names
How can I solve this problem and keep the / on file names ?
1
vote
2answers
743 views
Compress old log file into single zip-linux
I have a folder /home/testuser/log which contain log files of one day old *.log. I wish to compress all the log files older than one day to a single zip(gzip or tar.gz) and delete the older files.
I ...
1
vote
2answers
1k views
tar: Unexpected EOF in archive
I am trying extract .tar.gz file it but with no luck
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
the ...
3
votes
1answer
244 views
tar: exclude gzip file, and don't try to gunzip it
I would like to skip a large gzip file when I extract a tar file, but everytime tar starts to gunzip it to look inside it seems.
Even when I just try to peek inside tar seems to start gunzipping it, ...
6
votes
1answer
5k views
How do you extract a single folder from a large tar.gz archive?
I am using this command on a 5GB archive
tar -zxvf archive.tar.gz /folder/in/archive
is this the correct way to do this? It seems to be taking forever with no command line output...
0
votes
0answers
45 views
Backing up to DVD [duplicate]
Possible Duplicate:
Splitting large directory tree into specified-size chunks?
I have a partition that is about 14G and I need to back it up to DVD in such a way that I can use each disc to ...
3
votes
1answer
1k views
Will tar -cvzf packed.tar.gz mydir take hidden files into account?
I need to create a tarball of a given directory. However, I need to make sure hidden files are included too (such as those beginning with .).
Will the following command automatically take the hidden ...
5
votes
5answers
4k views
How can i view the contents of a tar.gz file (filenames + filesize)
I cannot use tar -tz as the solaris version I'm using does not accept the -z option.
I tried something like gunzip file.tar.gz | tar -tv but that only gives:
tar: /dev/rmt/0: No such file or ...
1
vote
2answers
2k views
How to recover a corrupted “tar.gz” file
I suddenly needed to recover an old tar.gz file, but as soon as I execute so:
tar -zxvf filename.tar.gz
I get this:
gzip: stdin: invalid compressed data--format violated
tar: Child returned ...
4
votes
2answers
302 views
diff a gzipped tarball against a directory?
Is there a way I can diff a gzipped tarball against an existing directory?
I would like to be able to do it without extracting the data from the tarball.
7
votes
4answers
1k views
tar extraction depends on filename?
I often download tarballs with wget from sourceforge.net.
The downloaded files then are named, e.g ...
9
votes
2answers
17k views
Add/update a file to an existing tar.gz archive?
Is there a way to add/update a file in a tar.gz archive? Basically, I have an archive which contains a file at /data/data/com.myapp.backup/./files/settings.txt and I'd like to pull that file from the ...
