Skip to content

Add output of rsync --stats or --info=stats[1-3] * FEATURE REQUEST #676

@tristangrimaux

Description

@tristangrimaux

rsync outputs extra info when called with the argument --stats or --info=stats[1-3]. This is very useful to make a dry-run and check how big the transfer will be.

It's different from the summary as it lists the amount of bytes transferred and in the case of of a dry-run it is just the names of the files.,

In this example a dry run gives 1.29M of data transferred vs the 759.17G bytes that are the Total transferred file size reported in the stats portion.

sent 8.99K bytes  received 1.29M bytes  370.21K bytes/sec
total size is 6.88T  speedup is 5,311,650.06 (DRY RUN)

rsync running with --info=stats3

rsync[1817530] (server sender) heap statistics:
  arena:        1204224   (bytes from sbrk)
  ordblks:           46   (chunks not in use)

rsync[1007426] (receiver) heap statistics:
  arena:        9244672   (bytes from sbrk)
  ordblks:           57   (chunks not in use)
  smblks:             1   (free fastbin blocks)
  hblks:              1   (chunks from mmap)
  hblkhd:        266240   (bytes from mmap)
  allmem:       9510912   (bytes from sbrk + mmap)
  usmblks:            0   (always 0)
  fsmblks:           96   (bytes in freed fastbin blocks)
  uordblks:      486480   (bytes used)
  fordblks:     8758192   (bytes free)
  keepcost:      133856   (bytes in releasable chunk)
  smblks:             2   (free fastbin blocks)
  hblks:              1   (chunks from mmap)
  hblkhd:        266240   (bytes from mmap)
  allmem:       1470464   (bytes from sbrk + mmap)
  usmblks:            0   (always 0)
  fsmblks:          192   (bytes in freed fastbin blocks)
  uordblks:      478288   (bytes used)
  fordblks:      725936   (bytes free)
  keepcost:      427216   (bytes in releasable chunk)

rsync[1007424] (generator) heap statistics:
  arena:        1384448   (bytes from sbrk)
  ordblks:            6   (chunks not in use)
  smblks:             1   (free fastbin blocks)
  hblks:              1   (chunks from mmap)
  hblkhd:        266240   (bytes from mmap)
  allmem:       1650688   (bytes from sbrk + mmap)
  usmblks:            0   (always 0)
  fsmblks:           96   (bytes in freed fastbin blocks)
  uordblks:      486160   (bytes used)
  fordblks:      898288   (bytes free)
  keepcost:      132272   (bytes in releasable chunk)

Number of files: 23,784 (reg: 23,191, dir: 593)
Number of created files: 2,651 (reg: 2,611, dir: 40)
Number of deleted files: 0
Number of regular files transferred: 2,629
Total file size: 6.88T bytes
Total transferred file size: 759.17G bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 98.10K
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 8.99K
Total bytes received: 1.29M

sent 8.99K bytes  received 1.29M bytes  370.21K bytes/sec
total size is 6.88T  speedup is 5,311,650.06 (DRY RUN)

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions