Tar (computing): Difference between revisions

(Created page with "tar is a program for creating archives. tar archives, or tarballs, preserve unix permissions of multiple files or folders. By default, a .tar file is not compressed. Typic...")
 
 
Line 30: Line 30:
[https://superuser.com/questions/168749/is-there-a-way-to-see-any-tar-progress-per-file Reference]
[https://superuser.com/questions/168749/is-there-a-way-to-see-any-tar-progress-per-file Reference]


Tar does not give you a progress bar by default.
Tar does not provide a progress bar.
You can get a progress bar by piping tar through <code>pv</code>:
You can get a progress bar by piping tar through <code>pv</code>:
<pre>
<pre>
tar cf - $folder | pv -s $(du -sb $folder | awk '{print $1}') | pigz > $folder.tar.gz
tar cf - $folder | pv -s $(du -sb $folder | awk '{print $1}') | pigz > $folder.tar.gz
</pre>
</pre>