[comp.unix.xenix.sco] compression in Sco Unix tar

rden@rden.gen.nz (Robert den Hartog) (12/30/90)

How does one drive the compression in the new Sco Unix tar?  strings tell's
me that it's there (references to compress and /usr/bin/compress) but the
manual pages don't mention compression at all.
I've tried a number of options but never managed to get it to compress anything
for me.

Regards
-- 
Robert den Hartog    {rden|robert}@{rden|mercury}.gen.nz

	      "You have to be trusted by the people that you lie to,
	       so that when they turn there backs on you,
	       you'll get the chance to put the knife in."       -- Pink Floyd.

ti@altos86.Altos.COM (Ti Kan) (01/03/91)

In article <1990Dec30.071602.2786@rden> rden@rden.gen.nz (Robert den Hartog) writes:
>
>How does one drive the compression in the new Sco Unix tar?  strings tell's
>me that it's there (references to compress and /usr/bin/compress) but the
>manual pages don't mention compression at all.

I don't really recommend using the compression "feature" of SCO tar,
since that makes your tar archive relatively non-portable.  However,
if you insist, to create a tar archive, use:

tar Cv ...

Note the upper case 'C' flag instead of the usual lower case 'c'.
To retrieve from a compressed archive, just retrieve normally with

tar xv ...

SCO tar will automatically determine that the archive is compressed,
and will uncompress each file.  If you want SCO tar to retrieve the
files but leave them compressed, then do:

tar Xv ...

Note the upper case 'X'.

Note that SCO probably didn't document the 'C' and 'X' options for
a reason.  so use these non-standard options at your own risk.

-Ti
-- 
Ti Kan | vorsprung durch technik!                                       \\\
Internet: ti@altos.com                                                   \\\
UUCP: ...!{sun|sco|pyramid|amdahl|uunet}!altos!ti                     /// \\\
The opinions herein are not necessarily those of Altos.              ////////\