Skip to content

Instantly share code, notes, and snippets.

@phackwer
Created May 17, 2018 11:17
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 phackwer/c0007ee07699a50c109215b595fb5dda to your computer and use it in GitHub Desktop.
Save phackwer/c0007ee07699a50c109215b595fb5dda to your computer and use it in GitHub Desktop.
Tar with Progress Bar
Requirements:
apt-get install pv original-awk
Creating:
tar cf - folder_you_will_compress -P | pv -s $(du -sb folder_you_will_compress | awk '{print $1}') | gzip > compressed_folder.tgz
Unpacking:
pv compressed_folder.tar.gz | tar -x -C .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment