Skip to content

Instantly share code, notes, and snippets.

@olivierpierre
Created July 13, 2016 19:01
Show Gist options
  • Save olivierpierre/21423ad8005ab6321aae8912c954cda2 to your computer and use it in GitHub Desktop.
Save olivierpierre/21423ad8005ab6321aae8912c954cda2 to your computer and use it in GitHub Desktop.
Compress a directory tree into a tarball using pigz
#!/bin/sh
if [ "$1" == "" ]; then
echo "Usage: $0 <folder to compress>"
exit
fi
NAME=`basename $1`
tar -c --use-compress-program=pigz -f $NAME.tar.gz $NAME
@olivierpierre
Copy link
Author

The uncompress script is here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment