We know that if we give --progress parameter to rsync it will show the progress of files copied. But issue is that is shows the progress for each single file not total or overall progress.
So how to see the Total progress of files copied.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
As the comments say, the question has already been asked here.
So... short answer: you can't.
I'm quoting David Mackintosh:
There are no trivial ways to add a total progress indicator.
The reason for this is that when rsync looks at a list of files to sync, it doesn't know ahead of time which files will need to change. If you are doing delta transfers, the deltas themselves have to be calculated ahead of time to give a total picture of the work that needs to be done.
In other words, the easiest way to calculate how much work there is to be done is to actually do it.
But you can have a progress bar about the number of file transferred using
pv, if you already know how much you have, quoting zerodeux:
rsync -aix /source remote:/dest | pv -les $(df -i /source | perl -ane 'print $F if $F =~ m:^/:') >/dev/null