Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am currently transferring about 40 Gigs of files from an external disk to my hard drive, and the rsync progress output always shows something like

... to-check=1100/24094)
... to-check=1099/24094)

But during the transfers, the second number grows, and the first never goes under 1000.

... to-check=1200/27199)
... to-check=1199/27199)

That leaves me puzzled - when will the transfer actually end?

Edit: Okay, at some point it ended. Still, what is causing that behavior?

share|improve this question

1 Answer 1

up vote 13 down vote accepted

rsync starts transferring the files before it finishes crawling to see exactly how many there are, to speed up the overall process. This means the number goes up as it's running.

As of rsync 3.1.0, this has changed a little:

The output of the --progress option has changed: the string "xfer" was shortened to "xfr", and the string "to-check" was shortened to "to-chk", both designed to make room for the (by default) wider display of file size numbers without making the total line-length longer. Also, when incremental recursion is enabled, the string "ir-chk" will be used instead of "to-chk" up until the incremental-recursion scan is done, letting you know that the value to check and the total value will still be increasing as new files are found.

share|improve this answer
1  
Is there any way to make it finish crawling first? –  hopeseekr Mar 22 '12 at 8:42
4  
--no-inc-recursive –  levinalex Jul 13 '12 at 0:17

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.