Compress files with Tar and show progress and ETA

Posted on November 17, 2016 at 7:21 pm

Run tar command and show progress with ETA:

tar cf - /folder-with-big-files -P | pv -s $(du -sb /folder-with-big-files | awk '{print $1}') | gzip > big-files.tar.gz

This is the example output:

1.77GB 0:03:02 [8.79MB/s] [============>             ] 11% ETA 0:24:08

Credits to @checksum.

Stay Updated

Other Posts

Updated Posts