rsync with progress bar

rsync is a great utility to move data across file-systems, but when you copy large array of data you would like to see visual representation of the progress of copying operation. This is how i do it.


rsync -rv --prune-empty-dirs /media/source/ /media/destination/ | pv -lep -s $(rsync -rvn /media/source/ /media/destination/ | awk 'NF' | wc -l)

rsync with progress bar