Bandwidth throttling when creating archives with tar
- Say hello to PV
- CSTREAM as the alternative to PV utility
If you need to create a large archive and want to spare your disk big IO operations then use the
Say hello to PV
What is PV?
This is the definition from the author: “pv - Pipe Viewer - is a terminal-based tool for monitoring the progress of data through a pipeline. It can be inserted into any normal pipeline between two processes to give a visual indication of how quickly data is passing through, how long it has taken, how near to completion it is, and an estimate of how long it will be until completion.”
Create the archive with tar and pipe it to
pv which will do the bandwidth throttling.
CSTREAM as the alternative to PV utility
Alternative way is to use cstream utility.
Run command with bandwidth limit of 777k