Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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.

share|improve this question
    
Duplicate: unix.stackexchange.com/questions/2577/… –  mr.spuratic Mar 20 '13 at 18:33
    
More likely a duplicate of this –  don_crissti Mar 20 '13 at 21:21
add comment

1 Answer

up vote 2 down vote accepted

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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.