Skip to content

Instantly share code, notes, and snippets.

@Jaid
Last active August 9, 2022 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jaid/f951426b390e093c16a7df7738ce7b71 to your computer and use it in GitHub Desktop.
Save Jaid/f951426b390e093c16a7df7738ce7b71 to your computer and use it in GitHub Desktop.
Create tar.zstd file from input directory in one step
# scripts
tar --create --file - archive | zstd -15 -T0 > archive.tar.zst
# tty
tar --create --file - archive | zstd --progress -15 -T0 > archive.tar.zst
zstd -d archive.tar.zst | tar --extract --file -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment