FreeBSD - Tutorials, Security
Home   Archives   Sitemap   About   Contact

Using rsync with progress bar

Home NEW! Unix Forum News 100 Tips and Tricks Website Development Server Operating Systems Databases
 Ivorde.ROarrow Server Operating Systems arrowAdministration GuidesarrowUsing rsync with progress bar 

Article Sections

    Hello, Guest !
User name:

 FreeBSD Tutorials
 Linux LVM Commands
 Free Shell Accounts
 FreeBSD Project
 FreeBSD Handbook
 Advanced Bash-Scripting Guide
 The OpenBSD Project
 FreeBSD Handbook

Apache Webserver Home Page

Blog, intrebari si raspunsuri despre Leasing

Posted on: 27 Mar 2008
Author: mandrei
Section: Server Operating Systems | Administration Guides
Views: 4809
Comments: 1 (Add)

Using rsync with progress bar
rsync, rsyng progress bar, linux rsync, unix rsync


Syncronizing directories from a remote directory to local directory or vice-versa can be done using rsync.

Be default, rsync doesn't show a progress bar while transfering files. 

Rsync with progress bar 

Use the below syntax in order for rsync to display a progress bar:

$ rsync -r -v --progress -e ssh root@remote-server:~/pictures /home/user/
receiving file list ...
366 files to consider
      3849245 100%   32.30kB/s    0:01:56 (xfer#30, to-check=335/366)
     4400662 100%   32.21kB/s    0:02:13 (xfer#31, to-check=334/366)
     2457600  71%   32.49kB/s    0:00:29

in this case rsync used some arguments:
-r, --recursive             recurse into directories
-v, --verbose               increase verbosity
-e, --rsh=COMMAND           specify the remote shell to use (which in my case it was ssh)
--progress              show progress during transfer

So basically, put --progress after your rsync command or you can create an alias like this:

$ alias rsync='rsync --progress'
$ alias rsync
alias rsync='rsync --progress'

You can add this alias to your ~/.profile and everytime you will be using rsync command, the progress bar will be shown durring file transfer.

Bookmarks: Echo "Using rsync with progress bar" around:

Other articles in Server Operating Systems / Administration Guides
» ProFTPd + MySQL - 530 Login incorrect

Contact webmaster regarding this article
Register or Login to post your article
Hello, Guest ! You can Login or Register to!

 Post comment:

Please type the word you see in the image (anti-spam verification). Refresh the page if you don't understand the word.
Verification code
Allowed HTML Tags for comments:<p><strong><em><u><h1><h2><h3><h4><h5><h6><img><li>

1 comment(s) to Using rsync with progress bar:

1. Re: Using rsync with progress bar
Recursive by Dàrent at April 13th, 2009 - 00:26
You can add too:

alias copyfolder='rsync --progress -r'

To make it recursive (copy folders an their content) ;)

   Latest topics on the forum:
Linux tso (tcp segmentation offload) - what it means and how to enable/disable it
Google reCaptcha - An internal error occurred
Php hide/remove X-Powered-By HTTP header
PHP 5.6 & Debian - easy.h should be in <curl-dir>/include/curl/
Free internet web directories for building backlinks
Juniper SRX Packet mode - how to switch between flow mode and packet mode
Juniper SRX IPv6 forwarding - how to enable flow mode or packet mode.
Mysql drop (remove) unique key
Echo new line in linux - supress new line or echo multiple new lines
SED uncomment line - How to uncomment a line or all lines with SED
   Most viewed articles:
How to change ProFTPd welcome message with ServerIdent - 7708 views
How to cat a file removing commented lines in Unix/Linux - 7572 views
How to clear/reset DNS cache on Windows XP / Linux - 7173 views
FreeBSD add user command - 5979 views
How to remove first/last character from a string using SED - 5698 views

   Latest 10 articles:
FreeBSD - Collect installed hard disk drive information - 19 Mar 2009
Set up FTP PROXY via command line in Linux/FreeBSD - 19 Mar 2009
Set up HTTP PROXY via command line in Linux/FreeBSD - 19 Mar 2009
Qmail relay to smarthost: How to route all mail to a smarthost - 03 Feb 2009
EXIM 4 relay to smarthost: How to route all mail except local domain - 03 Feb 2009
Windows XP: print LISTEN ports and network connections using netstat - 30 Jan 2009
qmail qmail-scanner/clamav qmail-inject: fatal: qq temporary problem / clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem - exit status 512/2 - 05 Dec 2008
How to cut out first last n characters from each file name, from a filelist - 04 Nov 2008
Mozilla Firefox3 is now released - 18 Jun 2008
How to switch lower case to upper case and upper case to lower case in a string - 17 Jun 2008

» 2007  |  June  |  October  |  November  |  December
» 2008  |  January  |  February  |  March  |  April  |  May  |  June  |  November  |  December
» 2009  |  January  |  February  |  March

Home | Archives | Sitemap | About | Contact

Designed and developed by Andrei Manescu. Optimized for Mozilla Firefox.  
Copyright 2007 Andrei Manescu
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by those who posted them.
Valid W3 Document Valid XHTML 1.0 Transitional Valid CSS! The FreeBSD Project Viewable With Any Browser