3
votes
0answers
35 views

Compressed file with a header containing all files within it, at the beginning of the file

I have noticed that most files resulting from a compression / archive process do not have a list of the files contained at the beginning of the resulting file, but rather at the end of it. For ...
0
votes
1answer
14 views

Compressing with BarCat?

I'm having an issue using Barcat to show a dialog while compressing? Wondering what the exact syntax is? here's a link to Barcat things I've tried are bar -n apache24.tar.xz |tar -Jcf - bar -n ...
-1
votes
1answer
25 views

How do I back up images with limited disk space?

I'm in a scenario where I have one 500GB hard drive and about 400GB of images I want to tar. I obviously won't have enough disk space, but I don't mind getting rid of the images as they are added to ...
0
votes
2answers
38 views

I cannot open folders in .tar file

I've downloaded factory image for my Nexus4 mobile, the Image folder is compressed in .tar file but it tells me that its unknown file Type: File ,, how can i open it? here take some photo of my ...
0
votes
3answers
48 views

Zero sized tar.gz file found inside a tar.gz file

My current directory contains a single file like this- $ls -l -rw-r--r-- 1 root staff 8 May 28 09:10 pavan Now, I want to tar and gzip this file like $tar -cvf - * ...
2
votes
0answers
249 views

tar: Cannot create symlink : File exists

I backup lots of gigebytes files in to myproject.tar.gz, and compress success without errors. Now, I want to decompress all to an folder "myprojects". adan@adan-Latitude-D630:~$ tar zxf ...
11
votes
2answers
417 views

Compressing many similar big files

I have hundreds of similar big files (30 megabyte each) which I want to compress. Every pair of files have 99% of same data (less then 1% difference), so I expect to have not more than 40-50 megabyte ...
2
votes
2answers
80 views

How to extract tar file on Windows, when the filenames include a colon?

I have a tar(.gz) file created on a Linux system, and the filenames contain colon characters. The tar utilities I can find on Windows don't extract these files at all. How can I do this, ideally ...
0
votes
1answer
26 views

How to use pv to see decompression progress?

I've seen: How to use Pipe Viewer (pv) for measuring compression progress? Is there a way to do the same thing for decompressing a gzipped file?
0
votes
1answer
616 views

How to extract multipart rar with missing parts?

I have a multipart .rar archive containing a single .tar.gz file inside it (don't ask why, that is just how it was made). I am missing a few of the parts, but do have the first part. I would like to ...
1
vote
1answer
96 views

How to convert a file of format tar.gz to tar.bz2?

Like the title says, how do I do this conversion from the Linux console?
1
vote
1answer
417 views

how to remove full path when doing tar.gz compression

I'm using this command to archive a directory named g from java code: tar czf /a/b/c.tar.gz /e/f/g When the tar file c.tar.gz is created, I find an entire path e/f/g then all files of the g folder ...
8
votes
2answers
347 views

let tar auto detect compression type when extracting from stdin

I use GNU tar. It can auto detect compression type when compressing/decompressing files. But I need to decompress an archive from stdin and the compress type is unknown. I noticed that tar can give me ...
0
votes
0answers
41 views

How do I join, decrypt and uncompress my backups?

This is the line I used to back up some files for f in "*"; do tar -ch "$f" | pv | xz -9 -v |openssl des3 -salt -k “mypassword” | split -a 4 -b 200m – “/backups_${f%}.tar.xz_” ; done Now I am ...
0
votes
1answer
32 views

Strange behavior encountered while using tar

I had a folder of useless C programs for a project. When I was compressing it using tar, I kept using tar -cvf c-project and then realized I'm setting the flag for the file name and I'm giving ...
2
votes
1answer
98 views

tar: compress only the contents of a folder

I have to compress only the contents of the folder, not the folder with tar, there is any argument for that? I have search but I don't find anything. Example: mainfolder/ asd1 asd2 ...
3
votes
1answer
1k views

tar/bz2 compress a file removing uncompressed original

Is there any way to turn a directory called dir1 into dir1.tar.bz2 without keeping the original? I need to save space and want to compress some large files but don't have enough room to keep a ...
0
votes
1answer
142 views

How to keep daily tar.gz backup with less redundant data

Like most of you, I have a few daily tag.gz snapshot of a folder (of any application). There is only a few different each other but the tar.gz is not a diff/delta friendly format. Most data in the ...
1
vote
2answers
200 views

Advanced backuping script

I'm currently writing an advanced starting script for my minecraft server. Everything works out as I want it too. But the problem is the backups. I created a function for it. It works also great and ...
-3
votes
1answer
193 views

Compress text file to tar.bz2 format on Ubuntu

How can I convert a sample.txt (uncompressed) file to sample.tar.bz2 format using Ubuntu 10.04 command shell?
1
vote
2answers
99 views

How to extract such a compressed file?

I have been asked to extract a ZIP file having in it 3 tar files and each tar file contains around 3000 gz files. I had to extract the main ZIP file first then extract the tar files second then ...
0
votes
3answers
148 views

Untar multiple files at once?

I'm on Windows 7 and have a number of .tar files with the following names: .tar-aa .tar-bb .tar-cc ... The tar files contain a large backup directory which is broken up into chunks of 250MBs each. ...
0
votes
2answers
426 views

What is the difference in various commands for compressing files in linux?

What are the commands for compressing files in linux and what are the difference between them? (for example: tar, gzip, rar). I'm working on Linux Mint 11 and doing a script for compressing files. I ...
1
vote
2answers
2k views

Between xz, gzip, and bzip2, which compression algorithim is the most efficient?

Between xz, gzip, and bzip2, which compression algorithm gives the smallest file size and fastest speed when compressing fairly large tarballs?
0
votes
0answers
68 views

LZMA Based Archiving on Linux

I am trying to build an archiving system. I have tested out LZMA compression algorithm, and it provides very good results. However, I need the ability to add and retrieve(will remain in the archive) ...
9
votes
4answers
9k views

How to obtain maximum compression with .tar.gz?

The way i understand the use of tar + gzip is that tar is normally used to consolidate a grouping of files into a single file, then gzip is used to compress that file. I recently learned that tar can ...
1
vote
1answer
343 views

How to use Pipe Viewer (pv) for measuring compression progress?

I've been trying to track the progress of the data in a pipe, specifically in a large init script for a minecraft server. How would I go about using pv to get an accurate readout of progress? I've ...
3
votes
1answer
187 views

tar file extraction, why file size reduced

We commonly know that compression is the reduction in size of data in order to save space or transmission time, I should expect bigger size when I extract compressed file. I have downloaded a file in ...
1
vote
3answers
274 views

Unix tar compressed folder not opening on windows

I used command tar -cvzf upload.tar upload to compress my upload folder, but when i'll extract it on widows using 7-Zip it shows up as just a single file, not folder. And the uplad folder isn't ...
1
vote
1answer
94 views

Guess compressability of a large file

I have a large file (~20 GB) and I want to quickly make an (approximate) estimate of how well it can compress. I want an program which can provide an immediate guess at the compressed filesize, and ...
1
vote
0answers
99 views

Extracting a tar file containing files with Chinese names will make the filenames illegible

On my Mac OS 10.6.8 I had a directory full of files that had Chinese filenames. I proceeded to run tar czf mydir.tar.gz mydir Now when I untar it with tar xzf mydir.tar.gz, the extracted filenames ...
2
votes
1answer
698 views

Estimating compressed file size using a list parameter

I am currently compressing a list of files from a directory in the following format: tar -cvjf test_1.tar.gz -T test_1.lst --no-recursion The above command will compress only those files ...
0
votes
1answer
511 views

“Unexpected end of file” error while uncompressing lzma file

I've got a file called foo.tar.lzma. While trying to decompress it, I get "Unerwartetes Dateiende" ("Unexpected end of file"). I assume I lost quite a lot of bytes, but 1.1 GB are still there. The ...
1
vote
2answers
236 views

Continually compressing a stderr stream

Is there some way to continually compress the output of a program (in almost realtime)? For example I have this program that produces (a lot of) output to stderr. I want to do something like ...
2
votes
2answers
166 views

Modern command line file compression utilities

I am frequently moving large files around from server to server. UNIXes comes with standard gzip and bzip2 compressors. However, what open options there exist beyond these, especially ones utilizing ...
7
votes
3answers
5k views

How do I convert tar.bz2 to tar.gz?

I'm new in Linux, is this conversion possible? Do I need to compress and decompress all content?
2
votes
2answers
5k views

Untar a given linux tarball on MAC OS X

I have a Linux tarball that can't be unpacked. It gives me an unexpected error. I am told this is due to case insensitive on MAC OS X. How can I untar this file? tar -zxvf file.tar.gz ... x ...
0
votes
2answers
4k views

How can I compress a large file into smaller parts?

I'm looking for a way to compress a large file (~10GB) into several files that wont exceed 150MB each. Any thoughts?
1
vote
2answers
676 views

Excluding Path While Compressing with TAR/GZ

I am compressing list of files like this: tar cvzf mycompress.tar.gz /dir1/dir2/file1.txt /dir1/dir2/file2.txt However when I uncompressed them the directory /dir1/dir2/ is still preserved. How to ...
4
votes
1answer
315 views

Tar - split files

i am using the following command to backup and sql file: tar -zcvf "$BACKUP_DST/$FILE_NAME.tgz" "$BACKUP_DST/$FILE_NAME.sql" i want to make sure the compressed file wont be larger then 300mb, if it ...
40
votes
4answers
40k views

How to specify level of compression when using tar -zcvf?

I gzip directories very often at work. What I normally do is tar -zcvf file.tar.gz /path/to/directory Is there a way to specify the compression level here? I want to use the best compression ...
4
votes
1answer
976 views

How to use tar to compress only two files in a directory?

I'm trying to compress only two files in a directory. Let's say I have a directory named 'images'. In the directory, I have a.jpg, b.jpg, c.jpg, and d.jpg. I like to compress only a.jpg and b.jpg ...
5
votes
2answers
6k views

What is the fastest compression method for a large number of files?

I need to compress a directory with around 350,000 fairly small files that amount to about 100GB total. I am using OSX and am currently using the standard "Compress" tool that converts this directory ...
2
votes
3answers
213 views

tar-ing / should I use -C / . or just /

tar cvf backup.tar -C / / # or tar cvf backup.tar / produces an archive like etc/ and gives warnings tar: Removing leading `/' from member names tar: Removing leading `/' from hard link ...
0
votes
3answers
11k views

How do I compress the contents of a folder using 'tar' over SSH?

How do I compress the contents of a folder using the tar command on an Unix system over SSH?
10
votes
4answers
9k views

.tar files without directory structure

I'm .taring some files with the path example/super_user/Output.*. The resulting .tar looks like this: + example + super_user - Output.zip - Output.xml - Output.txt ...
0
votes
2answers
3k views

How to make sure a .tar.gz file is valid and will uncompress correctly?

I have a few BIG .tar.gz files, and I want to make sure they will uncompress, but without actually doing it. If the file opens on "Archive Manager" on Ubuntu, and I can view it contents there, does ...
2
votes
3answers
945 views

Browsable compressed filesystem archive with full attributes?

Maybe a variation of the whole question would be: Are there any other archiving tools than tar that preserve Linux file permissions and user/group flags? I want to create archives of a directory tree ...
4
votes
1answer
750 views

zip/tar/? files with depth parameter

I would like to zip files from a directory but only to a given depth. In the example below I would like to include files until a depth of 3: dir0/ dir1/ dir2 -> subdir1, subdir2 dir3 ...
1
vote
1answer
975 views

Tar xvzf question

Hi I use FC12 command : tar xvfz GeoIP.dat.gz I get the errors tar: This does not look like a tar archive tar: Skipping to next header tar: Error exit delayed from previous errors Whats the ...