How to follow the progress of a gzip or tar

Reading Time: < 1 minute

First you need pv, Pipe Viewer

[bash]$ apt-get install pv
[bash]$ SIZE=`du -sk some-folder | cut -f 1`
[bash]$ tar cvf - some-folder | pv -p -s ${SIZE}k | gzip -c > folder.tar.bz2
Reading Time: < 1 minute

First you need pv, Pipe Viewer

[bash]$ apt-get install pv
[bash]$ SIZE=`du -sk some-folder | cut -f 1`
[bash]$ tar cvf - some-folder | pv -p -s ${SIZE}k | gzip -c > folder.tar.bz2

By Marc Olivier Meunier

Marc has spent the past few years putting oil on the fire of a hyper growth ad tech company. At Smartly.io he was in charge of scaling the support and its culture. At Eficode he is now leading an engineering team and running operations. He leads by example and puts a lot of emphasis on diversity and inclusion, constantly working to create a safe environment. A warm leader with a passion for memorable experiences and innovation.
Find Marc on Linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *