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.