News for hackers. Stuff that matters.
Re:Why not tar? Limitations of the tar file format. by anon_d on Monday September 06, 2010 @06:49AM (#1666417)
> Because tar does not support encryption/compression on the inside of archives.

Yes it does? Just encrypt/compress all the files before tarring.

> Not indexed

The reason tar doesn't have an index is so that tarballs can be concatenated. Also IIRC, you only have to jump through the headers for all files. Still O(n) where n is the number of files, but you don't have to scan through all of the data.

Re:Why not tar? Limitations of the tar file format. by gwern on Monday September 06, 2010 @09:01AM (#1666555)
> The reason tar doesn't have an index is so that tarballs can be concatenated.

I'm curious, what's the use-case for this? Offhand, the only use for that ability I can think of is if I forgot a file in a tarball and have already deleted the originals; I can tar the missing file and cat the two tarballs.

Re:Why not tar? Limitations of the tar file format. by dagw on Monday September 06, 2010 @09:08AM (#1666567)
Don't think files, think tapes. Tar stands for Tape ARchive and was originally primarily used for backing up to tapes. When working with tapes where deleteing and re-writing archives is basically impossible, concating an archive to the end of an already backed up archive to create a new, updated archive is very useful.
Re:Why not tar? Limitations of the tar file format. by gwern on Tuesday September 07, 2010 @10:19AM (#1668940)
Ah, I see. Yes, that does sound very useful.
Re:Why not tar? Limitations of the tar file format. by cybernytrix on Monday September 06, 2010 @04:32PM (#1667358)
Compress before tarring is a really dumb idea and you will get terrible compression ratios - you cannot exploit data patterns across files. It could work if you ask gzip to write some sort of a global table...
Re:Why not tar? Limitations of the tar file format. by Nelson69 on Monday September 06, 2010 @06:38PM (#1667550)
You also make a bad block affect potentially every file following it. When if you compress pre-tar you could find the next file boundary and recover the rest.