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:
Password:
 
Google

 SATELLITE INTERNET
 FreeBSD Tutorials
 Linux LVM Commands
 Free Shell Accounts
 FreeBSD Project
 FreeBSD Handbook
 Advanced Bash-Scripting Guide
 The OpenBSD Project
 Distrowatch
 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: 1521
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
pictures/IMG_1141.jpg
      3849245 100%   32.30kB/s    0:01:56 (xfer#30, to-check=335/366)
pictures/IMG_1142.jpg
     4400662 100%   32.21kB/s    0:02:13 (xfer#31, to-check=334/366)
pictures/IMG_1172.jpg
     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:
del.icio.usdiggFurlYahooMyWebGoogleBookmarksFaceBookTechnocratti
-------------------advertising-----------------

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 www.ivorde.ro!

 Post comment:

Name:
Title:
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>
<ol><ul><span><div><br><ins><del>

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:
FreeBSD - Monitor geom disk i/o statistics using gstat/iostat
Squid clear cache on FreeBSD
Linux: Show UUID of filesystem
IPSEC vpn between IPHONE and Linux/FreeBSD racoon daemon
How to add BIOS boot delay for particular VM in VMWare ESXi 5.x
FreeBSD slow booting: Recovering vi editor sessions
FreeBSD: fsck: Could not determine filesystem type
FreeBSD 9 : Remount an already mounted filesystem without unmounting it
CentOS and KVM: Setup VNC server on the hypervisor
FreeBSD virsh console hangs in "Escape character is ^]" \w KVM hypervisor any text console provider
 
   Most viewed articles:
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 - 8295 views
Reloading /etc/profile - how to reload Unix /etc/profile - 3316 views
Set up HTTP PROXY via command line in Linux/FreeBSD - 3073 views
AIX 5.3 - How to check for failed login attempts - 2662 views
How to change ProFTPd welcome message with ServerIdent - 2459 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


Archives
» 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