With GNU GZIP environment variable deprecated, how to control ZLIB compression via tar? -
currently have script sets compression using gzip
environment variable.
with gzip 1.8 warning:
warning: gzip environment variable deprecated; use alias or script
how should tar invoked compression level set?
current command:
gzip=-9 tar -zcf
... files compress ...
depends on os, , version of tar
ships it. if it's bsd and/or macos, can just:
tar --options gzip:compression-level=9 -czf foo.tar.gz foo.txt
otherwise, take compression stage own hands:
tar -cf - foo.txt | gzip -9 > foo.tar.gz
Comments
Post a Comment