Skip to main content
rsync overall progress available within the tool
Source Link
Totor
  • 21.1k
  • 21
  • 85
  • 114

As the comments say, the question has already been asked here.

So... short answer: you can't.

So... short answerEDIT: you can't. you can now use the --info=progress2 option of rsync to get an idea of overall progress (read the rest of my original answer if you are looking for an alternate progress indicator or for more info).

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 

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 

As the comments say, the question has already been asked here.

So... short answer: you can't.

EDIT: you can now use the --info=progress2 option of rsync to get an idea of overall progress (read the rest of my original answer if you are looking for an alternate progress indicator or for more info).

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 
replaced http://serverfault.com/ with https://serverfault.com/
Source Link

As the comments say, the question has already been asked herehere.

So... short answer: you can't.

I'm quoting David MackintoshDavid 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 zerodeuxzerodeux:

rsync -aix /source remote:/dest | pv -les $(df -i /source | perl -ane 'print $F[2] if $F[5] =~ m:^/:') >/dev/null 

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 

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 
Source Link
Totor
  • 21.1k
  • 21
  • 85
  • 114

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