bsdtar : jcf and --use-compress-program-bzip2 produce different files

Posted by Valerio Schiavoni on Server Fault See other posts from Server Fault or by Valerio Schiavoni
Published on 2013-10-21T08:49:11Z Indexed on 2013/10/21 9:58 UTC
Read the original article Hit count: 318

Filed under:
|

These two commands produce files that are slightly different in size. In particular:

tar --use-compress-program=pbzip2 -cf old_logs.tbz2 1tree_* 4tree_* 8tree_*

The file old_logs.tbz2 is 100557548 bytes large.

The command:

tar jcf old_logs.tbz 1tree_* 4tree_* 8tree_*

produce the file old_logs.tbz that is 98783046 bytes large.

Where the difference in the two files originate from ? I'm using bsdtar 2.8.3 - libarchive 2.8.3 on mac osx 10.8.5.

© Server Fault or respective owner

Related posts about tar

Related posts about compression