7
3
Gzipping a tar file as whole is drop dead easy and even implemented as option inside tar
. So far, so good. However, from an archiver's point of view, it would be better to tar the gzipped single files. (The rationale behind it is, that data loss is minified, if there is a single corrupt gzipped file, than if your whole tarball is corrupted due to gzip or copy errors.)
Has anyone experience with this? Are there drawbacks? Are there more solid/tested solutions for this than
find folder -exec gzip '{}' \;
tar cf folder.tar folder
I'm not sure, but is this not the same as .tar.gz? In other words, does zip compress the single files and add them in a simple concatenating way? My experiences with corrupted ZIP files so far were, that zip completely denies handling the archive (i.e., the same as a corrupt .tar.gz archive). – Boldewyn – 2010-05-19T20:40:07.223
@boldewyn: yes, thats how zip works. it is a container format (a bit like tar), where you can specify "storage" methods for the elements. either compress ("deflate") or just "store". – akira – 2010-05-20T06:31:31.483