5

When I move directories with rsync, I get some extra data to the right of the progress bar right after each file has been copied:

$ rsync -aP assembly /media/andreas/backup
sending incremental file list
assembly/
assembly/1. East Rutherford - English - Friday AM.mp4
  4,227,174,902 100%   25.38MB/s    0:02:38 (xfr#1, to-chk=6/8)
assembly/2. East Rutherford - English - Friday PM.mp4
  5,196,565,076 100%   25.04MB/s    0:03:17 (xfr#2, to-chk=5/8)
assembly/3. East Rutherford - English - Saturday AM.mp4
    596,565,076  10%   24.70MB/s    0:02:57 

What do those xfr and to-chk parts mean?

7

This, like most things, is explained in rsync's extremely comprehensive man page (emphasis mine):

When the file transfer finishes, rsync replaces the progress line with a summary line that looks like this:

 1,238,099 100%  146.38kB/s    0:00:08  (xfr#5, to-chk=169/396)

In this example, the file was 1,238,099 bytes long in total, the average rate of transfer for the whole file was 146.38 kilobytes per second over the 8 seconds that it took to complete, it was the 5th transfer of a regular file during the current rsync session, and there are 169 more files for the receiver to check (to see if they are up-to-date or not) remaining out of the 396 total files in the file-list.

So, in your example, assembly/2. East Rutherford - English - Friday PM.mp4 was the second file to be transferred, and another 5 of a total of 8 files will need to be checked.

  • 3
    Doh, I forgot the first rule of Linux: "When in doubt, check the man pages" – IQAndreas Nov 3 '14 at 16:06
  • Or StackOverflow :P – David Andreoletti Mar 13 '16 at 0:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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