Can I make rsync output only the summary?

Better Stack Team
Updated on November 23, 2023

Yes, you can make rsync output only a summary of the transfer by using the --stats option. This option provides a summary of the files transferred, the amount of data transferred, and the transfer speed without showing detailed information about each file. Here's how to use it:

 
rsync --stats source_directory/ destination_directory/

In this command:

  • source_directory is the directory you want to sync or back up.
  • destination_directory is the location where you want to store the data.

When you include the --stats option, rsync will display a summary at the end of the transfer, providing information on the number of files transferred, the amount of data sent, the transfer speed, and the total time taken.

This summary is helpful when you want a quick overview of the transfer progress without being inundated with detailed file-by-file information. It's particularly useful for monitoring large or lengthy synchronization tasks.

Got an article suggestion? Let us know
Explore more
Licensed under CC-BY-NC-SA

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Make your mark

Join the writer's program

Are you a developer and love writing and sharing your knowledge with the world? Join our guest writing program and get paid for writing amazing technical guides. We'll get them to the right readers that will appreciate them.

Write for us
Writer of the month
Marin Bezhanov
Marin is a software engineer and architect with a broad range of experience working...
Build on top of Better Stack

Write a script, app or project on top of Better Stack and share it with the world. Make a public repository and share it with us at our email.

community@betterstack.com

or submit a pull request and help us build better products for everyone.

See the full list of amazing projects on github