Skip to content

Instantly share code, notes, and snippets.

@aahung
Created February 13, 2017 06:57
Show Gist options
  • Save aahung/9c7c2831afacab1ee48f245e05ea1ba3 to your computer and use it in GitHub Desktop.
Save aahung/9c7c2831afacab1ee48f245e05ea1ba3 to your computer and use it in GitHub Desktop.
Multithreading gzip Compress using pigz
# http://stackoverflow.com/a/12320421
# -9 for better compression
# 32 is number of cores to use
tar cf - paths-to-archive | pigz -9 -p 16 > archive.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment