monitor tar-progress in linux using pv command
tar cf - /folder-with-big-files -P | pv -s $(du -sb /folder-with-big-files | awk '{print $1}') | gzip > big-files.tar.gz
4.69GB 0:04:50 [16.3MB/s] [==========================> ] 78% ETA 0:01:21
$ pv big-files.tar.gz | tar xjf -
-C target_directory
reference:
http://www.tecmint.com/monitor-copy-backup-tar-progress-in-linux-using-pv-command/
留言
張貼留言