Timeline for How to XZ a directory with TAR using maximum compression?
Current License: CC BY-SA 4.0
17 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Jan 7 at 13:27 | history | edited | AdminBee | CC BY-SA 4.0 | Add syntax hints |
| S Jan 7 at 13:27 | history | suggested | Philippe Cloutier | CC BY-SA 4.0 | rectify, specify, and add links |
| Jan 6 at 18:35 | review | Suggested edits | |||
| S Jan 7 at 13:27 | |||||
| Dec 5, 2022 at 22:32 | comment | added | Smeterlink | @midnite not needed, works as @user3439968 said: XZ_OPT=-9T0 tar cJf file.tar.xz file | |
| Mar 9, 2022 at 15:37 | comment | added | midnite | @user3439968 - I wonder if using T0 without a space means compression level 0. I think using XZ_OPT="-e9 -T 0" tar cJf tarfile.tar.xz directory is what you mean. | |
| Mar 13, 2021 at 12:33 | comment | added | cronburg | Double reminder to readers to check man xz | grep XZ_OPT before using this method. | |
| Aug 14, 2019 at 23:27 | comment | added | user3439968 | XZ_OPT=-e9T0 tar cJf tarfile.tar.xz directory. T0 - Specify the number of worker threads to use. Setting threads to a special value 0 makes xz use as many threads as there are CPU cores on the system. | |
| Nov 20, 2017 at 12:37 | comment | added | Sven | Just for the record: XZ_OPT is not a feature implemented in tar. It's a feature of xz. When tar calls xz, the env-variable is simply passed on. | |
| Feb 24, 2017 at 3:17 | comment | added | Rahly | Its good to note, the use of XZ_OPT or XZ_DEFAULTS depends on the version of XZ and not TAR. man xz | |
| S Dec 23, 2016 at 21:55 | history | suggested | hobs | CC BY-SA 3.0 | example for --extreme and -9 options |
| Dec 23, 2016 at 21:16 | review | Suggested edits | |||
| S Dec 23, 2016 at 21:55 | |||||
| Dec 23, 2016 at 20:48 | comment | added | hobs | So to set both -9 and -e xz opts, you want XZ_OPT=-e9 but as @krzyk pointed out, -e is extremely slow | |
| S Jan 21, 2015 at 13:42 | history | suggested | anddam | CC BY-SA 3.0 | Add mention of bash syntax |
| Jan 21, 2015 at 13:27 | review | Suggested edits | |||
| S Jan 21, 2015 at 13:42 | |||||
| Jan 20, 2015 at 10:43 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 | `J` only available in some versions of the GNU implementation of `tar` |
| Jan 13, 2012 at 0:06 | history | edited | bsd | CC BY-SA 3.0 | added 136 characters in body |
| Jan 12, 2012 at 21:32 | history | answered | bsd | CC BY-SA 3.0 |