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 growth companies. He leads by example and puts a lot of emphasis on inclusion, constantly working to create a safe environment. A warm leader with a passion for memorable experiences and innovation.
Marc is available for contracting as a fractional Head of Customer Experience.
Find Marc on Linkedin

Leave a Reply

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