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.
the best is (I checked)
If this preservation is what you want, then
If you don't care about FS metadata preservation, then give
(defaults to LZMA2 compression algorithm just like
Just to give you an idea of the difference:
I don't know exactly why
tar's lowercase j switch uses bzip, uppercase J switch uses xz.
The XZ_OPT environment variable lets you set xz options that cannot be passed via calling applications such as tar.
This is now maximal