Quantcast
Channel: How to XZ a directory with TAR using maximum compression? - Unix & Linux Stack Exchange
Browsing all 14 articles
Browse latest View live

Answer by mirix for How to XZ a directory with TAR using maximum compression?

In a multicore machine from version v5.2.0 of xz-utils, check: -T, --threads=NUM use at most NUM threads; the default is 1; set to 0 If you wish to use the maximum number of cores and maximum...

View Article



Answer by Goran Dragic for How to XZ a directory with TAR using maximum...

tar --help : -I, --use-compress-program=PROG tar -I 'xz -9' -cvf foo.tar.xz foo/ tar -I 'gzip -9' -cvf foo.tar.gz foo/ also compress with external compressors: tar -I 'lz4 -9' -cvf foo.tar.lz4 foo/ tar...

View Article

Answer by Samuel Li for How to XZ a directory with TAR using maximum...

On Mac OS X, an alternate approach to pass in the parameter with tar is to use a --options= flag. For example, tar Jcvf targetFileName.tar.xz --options='compression-level=9' directoryName

View Article

Answer by Joshua Huber for How to XZ a directory with TAR using maximum...

If you would like this to complete faster, using multiple threads, but without slowing down your system while you perform other work, try adding -Tn where n is how many threads you want to use, as well...

View Article

Answer by hobs for How to XZ a directory with TAR using maximum compression?

For those interested, -e9 is 0.4% smaller, 20% slower at compression, 3% slower for decompression, compared to -9 on a typical laptop. Here're the timing runs on the Python source code directory...

View Article


Answer by Anonymous for How to XZ a directory with TAR using maximum...

If you have 16 GiB of RAM (and nothing else running), you can try: tar -cf - foo/ | xz --lzma2=dict=1536Mi,nice=273 -c - > foo.tar.xz This will need 1.5 GiB for decompression, and about 11x that for...

View Article

Answer by Edward Torvalds for How to XZ a directory with TAR using maximum...

This is not an exact answer to your question but you could use one command instead of two: 7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on archive.7z dir1 adds all files from directory "dir1" to...

View Article

Answer by Szymon Roziewski for How to XZ a directory with TAR using maximum...

You might try different options, for me -4e works better tar cf - wam_GG_${dir}.nc | xz -4e > wam_GG_${dir}.nc.tar.xz I tested by running: $ tar -cf - wam_GG.nc | xz -4e > wam_GG.nc.xz $ tar -cf...

View Article


Answer by Evandro Jr for How to XZ a directory with TAR using maximum...

XZ_OPT=-9e tar cJf tarfile.tar.xz directory is even better than XZ_OPT=-9 tar cJf tarfile.tar.xz directory

View Article


Answer by leonardoav for How to XZ a directory with TAR using maximum...

tar command uses J flag for xz files. An example: tar -cJvf foo.tar.xz foo/

View Article

Answer by Shadur for How to XZ a directory with TAR using maximum compression?

Assuming xz honors the standard set of commandline flags - including compression level flags, you could try: tar -cf - foo/ | xz -9 -c - > foo.tar.xz

View Article

Answer by bsd for How to XZ a directory with TAR using maximum compression?

With a recent GNU tar on bash or derived shell: XZ_OPT=-9 tar cJf tarfile.tar.xz directory tar's lowercase j switch uses bzip, uppercase J switch uses xz. The XZ_OPT environment variable lets you set...

View Article

How to XZ a directory with TAR using maximum compression?

So I need to compress a directory with max compression. How can I do it with xz? I mean I will need tar too because I can't compress a directory with only xz. Is there a oneliner to produce e.g....

View Article


Image may be NSFW.
Clik here to view.

Answer by Adam Wądołkowski for How to XZ a directory with TAR using maximum...

The maximum compression depends on the capabilities of the equipment on which you want to apply it. Maximum compression results in a diametrical extension of its duration, generating a heavy load of...

View Article
Browsing all 14 articles
Browse latest View live




Latest Images