Tar does not perform any compression on files, and will always produce a resulting tar-file that is larger than the sum of all of the files that went into it.
The precise reason why the tar is so much larger could be any one of a number of factors such as large numbers of small files not being efficiently stored, hard-links being followed leading to duplication in the directory tree or the flattening of sparse files leading to substantially larger unsparsed files within the tar repository.
If you want to create a small file for backup or transfer to another system, I suggest you compress the tar file with Gzip (to a tar.gz) file or another compression algorithm to produce a much smaller file. Tar files tend to compress well, so this should produce a file substantially below the 14GB you cited.
1And you're sure you didn't pack the
tar
into itself? – Der Hochstapler – 2012-03-05T15:36:59.197I pasted here the commands I used, so yes I'm pretty sure. Is tar following simlinks by default? I really don't get it... – Thomas – 2012-03-05T15:39:06.683
It's not really apparent what your current working directory is. That could be relevant. – Der Hochstapler – 2012-03-05T15:47:53.223
In this question/answers, people discuss how bad solaris links are treated.
– woliveirajr – 2012-03-05T15:48:06.997