Archive
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
- archivegenerates an archive based on file extension. Syntax is- archive myarchive.tar.gz /path/to/archive
- unarchiveunarchives a file based on the extension. Syntax is- unarchive myarchive.7z
Archive Formats
| Format | Requirements | 
|---|---|
| .tar | tar | 
| .tar.gz, .tgz | tarorpigz | 
| .tar.bz2, .tbz | tarorpbzip2 | 
| .tar.xz, .txz | tarwith xz support | 
| .tar.zma, .tlz | tarwith lzma support | 
| .gz | gunziporpigz | 
| .bz2 | bunzip2orpbzip2 | 
| .xz | unxz | 
| .lzma | unzlma | 
| .Z | uncompress | 
| .zip | unzip | 
| .rar | unrarorrar | 
| .7z | 7za |