zst_compress
Batch compress to or decompress dir/*.tar.zst
Scope
-
Do zst batch compression within rust.
-
Simplify the work for team data maintainers.
Installation
You could choose to install from pre-built binary or Build from source.
Install from pre-built binary
For Windows 10/11 systems
-
Extract
zst_compress-<version>.zipPut it into searching path if you like to.
-
Change directory to the archive folder you are working with, open windows terminal and run
zst_compress.exe -hand follow the instructions.If zst_compress.exe was not in Path, just run with absolute path.
For Linux systems
-
Extract
zst_compress-<version>.tar.zstwith:tar -xvf zst_compress-<version>.tar.zstPut it into searching path if you like to.
-
In terminal emulator, change directory to the archive folder you are working with, run
zst_compress -hand follow the instructions.
Build from source
The program was brought with 🦀Rust and therefore can work with most Rust hosts.
This will work for Linux, Windows, macOS with different chips.
-
Install Rust: follow the tutorial to install Rust.
-
Install a Rust toolchain.
-
Install zst_compress with
cargo install --locked zst_compress. -
Now you are ready to run
zst_compress -h.
Usage
Usage: zst_extract.exe [OPTIONS]
Options:
-p, --preserve Preseve original files after compression
-f, --flag Leave flag text pointing to compression target
-i, --input <INPUT> Select a single input file instead of ./*
-x Extract file from batch archived
-l, --leveldir <LEVELDIR> Select recursive level for listing directory; default to 4
-t, --target <TARGET> Target location for oprated files; default to current
-z, --zstdlevel <ZSTDLEVEL> Zstandard level, 1(fastest) to 22(smallest); default to 3
-h, --help Print help
-V, --version Print version