Compression when encrypting the output of tar?

Richard Laager rlaager at
Tue Jan 4 01:12:43 CET 2005

On Mon, 2005-01-03 at 16:58 -0700, Chris De Young wrote:
> Am I correct in thinking that tar already compresses data and that I am 
> better off using "--compress 0" when using GPG to encrypt the output of tar 
> on the fly?

No. Tar does not compress data by default. You have to either pipe the
output through a compression program or use the -z or -j flag which asks
tar to pipe the output through gzip or bzip2, respectively.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : /pipermail/attachments/20050103/ed5634a3/attachment-0001.bin

More information about the Gnupg-users mailing list