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 was using rsync using --progress option , So the file transfer completed and I got following output

receiving incremental file list
Makefile
          9,935 100%    9.47MB/s    0:00:00 (xfr#1, to-chk=0/1)

My question is what does to-chk=0/1 means ?

I am transferring only 1 file here ,that is Makefile. transfer number (xfr#1) clearly indicates 1 file , but what does to-chk = 0/1 stands for ?

share|improve this question
    
Did your transfer only consist of one file? –  slhck Jan 14 '13 at 7:53
    
yes , only 1 file –  Akshay Patil Jan 14 '13 at 19:51
add comment

1 Answer

up vote 2 down vote accepted

to-chk or to-check gives you the number of files still to be checked, e.g. 0/1 means 0 of a total of 1 files in the queue still need to be checked.

During a normal transfer with, let's say 42 files, to-check will basically count down from 42 to 0 (to-check=38/42to-check=2/42) until rsync is done syncing.

Note that for large amounts of files, the last number in to-check may also grow since rsync doesn't queue all files at once (to-check=38/42...to-check=2/56). That's because it uses a recursion algorithm:

Beginning with rsync 3.0.0, the recursive algorithm used is now an incremental scan that uses much less memory than before and begins the transfer after the scanning of the first few directories have been completed.

To disable this behavior add the --no-inc-recursive option.

Note that in newer releases of rsync (3.1.0), the label has been changed to ir-chk to indicate incremental recursive progress (ie: the default) and to-check to indicate non incremental recursive progress (ie: with the --no-inc-recursive option).

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.