Quantcast
Channel: How can I view a progress bar when running rsync? - Ask Ubuntu
Viewing all articles
Browse latest Browse all 8

Answer by Benjamin for How can I view a progress bar when running rsync?

$
0
0

Something I find useful is using a tqdm like this:

Like @ostrokach said, you can install it either by

pip install tqdm

or

sudo apt install python3-tqdm

Set the params:

SRC=a/DST=bPARAMS=-av

And invoke:

rsync ${PARAMS} ${SRC} ${DST} |  tqdm --null --unit-scale --total=$(rsync ${PARAMS}n ${SRC} ${DST} | wc -l)

This will show overall progress counting files (actually - counting lines).

If you want to see the files being copied, you can omit the --null option from tqdm.


Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>