-
-
Save IsmailM/73768fd0c26ef8f19146769182c86951 to your computer and use it in GitHub Desktop.
Compress a directory tree into a tarball using pigz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment