4 ms·
> tar-1.3.1 added support for zstd with the option `--zstd` [...] Is there a way to pass options to zstd when used like this?
by feanaro 8y ago
> tar-1.3.1 added support for zstd with the option `--zstd` [...]
Is there a way to pass options to zstd when used like this?
- aepiepaey 8y agoLast time I checked zstd does not support getting options from an environment variable (unlike .e.g. gzip). With a new enough version of tar you can pass a command with arguments to '-I' (e.g. `tar -I 'zstd -19' ...`). The alternative is piping the output from tar through zstd yourself.
- vbtechguy 8y agoI build my own custom tar 1.32 rpm with zstd support https://community.centminmod.com/threads/custom-tar-archiver-rpm-build-with-facebook-zstd-compression-support.16243/ https://community.centminmod.com/threads/custom-tar-archiver... and can confirm you can pass options that way.
- terrelln 8y agoStarting with zstd-1.3.8 we support the `ZSTD_CLEVEL` environment variable. We've started with a small scope for the variable, because we don't want users to unexpectedly remove the source fie, for instance. If you want to pass extra options, you can pipe the output to zstd, which is exactly what tar is doing internally.