Skip to content

Instantly share code, notes, and snippets.

@jadams
Created October 14, 2016 04:57
Show Gist options
  • Save jadams/1b3a3c4ad748329015fb3de53597bf67 to your computer and use it in GitHub Desktop.
Save jadams/1b3a3c4ad748329015fb3de53597bf67 to your computer and use it in GitHub Desktop.
#!/bin/sh
tar -cf - $1 | pv -s $(du -sb $1 | cut -f 1) | pigz > $1.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment