copy with progress bar - rsync

rsync -rv <src> <dst> --progress
-r for recursive (if you want to copy entire directories) src for the source file (or wildcards) dst for the destination --progress to show a progress bar

By: fecub
2011-08-05 09:29:12

1 Alternatives + Submit Alt

What Others Think

Using rsync 3.0.7 here. No progress "bar" -- no picture of an empty container that fills up. Instead --progress gives me a tally of how many files will be copied in total, and how many remain to be copied.
Mozai · 568 weeks and 6 days ago
Found using OS X (Snow Leopard) which has rsync 2.6.9, the progress option needed to go before the , so: rsync -rv --progress <src> <dst> This did not show a progress bar, but listed each file/directory being copied, the percentage, Mb/s, and time remaining.
coelmay · 568 weeks and 6 days ago
Shorter version: rsync -P I would be interested in a progress bar version though... something like the bar in wget would be neat.
d3Xt3r · 568 weeks and 4 days ago
You can also use pv: pv <src> > <dst>
unixmonkey22522 · 565 weeks and 1 day ago ????? ??? ????? ???? SEO ????? ????? ????? ???? ????? ????? ??? ???? ???? ??????? Search Engine Optimization ??? ????? ??????????? ?? ????? ?????????? ????? ????? ?? ????
seofox · 21 weeks and 5 days ago
seofox · 20 weeks and 3 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: