Friday, April 27, 2012

Rsync Show Progress Bar While Copying Files

How do I show progress while copying files using rsync locally or remotely?

You need to use the --progress option which show progress during file transfer. The syntax is as follows:
sync -av --progress /path/to/*.mp3 /nfs
rsync -av --progress /path/to/*.avi -e user@remote.example.com:/data
Sample output:
movie1.avi
367071842 100% 40.49MB/s 0:00:08 (xfer#1, to-check=6/7)
movie2.avi
367550238 100% 46.39MB/s 0:00:07 (xfer#2, to-check=5/7)
....
......
..
sent 2571434590 bytes received 145 bytes 7274214.24 bytes/sec
total size is 2571120062 speedup is 1.00

No comments:

Post a Comment