How to see the total progress while copying the files

To see total progress with rsync, the modern versions (from 3.1.0) has option --info=progress2. rsync must be running on the same machine as source files (or with NFS) for this to show sane values. Don't forget to supply -a option too if you copy system directories.


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[2] if $F[5] =~ m:^/:') >/dev/null

rsyncy is a rsync wrapper that shows a status bar with progress:

rsyncy