If you are running an rsync job that is backing up large amounts of data, you may want to make sure everything is proceeding normally by being able to view the progress of the rsync job.
~]# rsync -a --progress /tmp/ backup/ sending incremental file list created directory backup ./ ./file.iso 5242880000 100% 86.39MB/s 0:00:57 (xfer#1, to-check=264/278) ./file1.iso 593035264 11% 41.55MB/s 0:01:49 : . ~]# ~]# rsync -a -P /tmp/ backup/ sending incremental file list created directory backup ./ ./file.iso 5242880000 100% 86.39MB/s 0:00:57 (xfer#1, to-check=264/278) ./file1.iso 593035264 11% 41.55MB/s 0:01:49 : . ~]#
Purchase Dedicated Servers
Select, configure, and buy!
The '-P' option is similar to both the --progress and --partial rsync flags, which makes it slightly different from the --progress flag. When an error occurs, the --partial option keeps the partially transmitted files rather than deleting them.
The progress displays an updating line that indicates how much progress has been made in terms of the amount of bytes and overall percentage of the file transferred, as well as a projected overall transfer time. When finished, 100% of the file's total size as well as the actual transfer time are displayed.