2018-11-06 14:05:12 -05:00
|
|
|
archive
|
2015-12-16 17:00:25 -05:00
|
|
|
=======
|
|
|
|
|
|
|
|
Provides `archive` and `unarchive` functions for easy archive manipulation.
|
|
|
|
|
|
|
|
This module will make use of `pigz` and `pbzip2` if available to make use of all available CPU cores.
|
|
|
|
|
|
|
|
Functions
|
|
|
|
---------
|
|
|
|
|
|
|
|
* `archive` generates an archive based on file extension. Syntax is `archive myarchive.tar.gz /path/to/archive`
|
2018-12-07 12:55:06 -05:00
|
|
|
* `unarchive` unarchives files based on the extensions. Syntax is `unarchive myarchive.7z`
|
2015-12-16 17:00:25 -05:00
|
|
|
|
2018-11-06 14:05:12 -05:00
|
|
|
Archive formats
|
2015-12-16 17:00:25 -05:00
|
|
|
---------------
|
|
|
|
|
|
|
|
| Format | Requirements |
|
|
|
|
| ------ | ------------ |
|
|
|
|
| .tar | `tar` |
|
|
|
|
| .tar.gz, .tgz | `tar` or `pigz` |
|
2018-11-06 14:05:12 -05:00
|
|
|
| .tar.bz, .tar.bz2, .tbz, .tbz2 | `tar` or `pbzip2` |
|
2015-12-16 17:00:25 -05:00
|
|
|
| .tar.xz, .txz | `tar` with xz support |
|
|
|
|
| .tar.zma, .tlz | `tar` with lzma support |
|
|
|
|
| .gz | `gunzip` or `pigz` |
|
2018-11-06 14:05:12 -05:00
|
|
|
| .bz, .bz2 | `bunzip2` or `pbzip2` |
|
2015-12-16 17:00:25 -05:00
|
|
|
| .xz | `unxz` |
|
|
|
|
| .lzma | `unzlma` |
|
|
|
|
| .Z | `uncompress` |
|
|
|
|
| .zip | `unzip` |
|
|
|
|
| .rar | `unrar` or `rar` |
|
|
|
|
| .7z | `7za` |
|