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: 3833
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:
Linux: How to list IPv6 neighbors
VPSie - vpsie.com - New SSD VPS provider- 6 months free SSD VPS hosting
FreeBSD: How to list IPv6 neighbors
How to add (persistent) static ARP entries in Linux
How to change crontab editor in Debian Linux
Junos router advertisements - Unix IPv6 stateless autoconfiguration via SLAAC
Juniper SRX firewall debug: packet dropped: for self but not interested
IPv6 enablement for Ivorde.ro
How to force NTP in Debian/Ubuntu to synchronize to IPv4 servers, not IPv6 (default \w both proto)
BGP Blackhole (RTBH) with Juniper SRX firewall
 
   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 - 21452 views
AIX 5.3 - How to check for failed login attempts - 11284 views
Reloading /etc/profile - how to reload Unix /etc/profile - 8868 views
How to cat a file removing commented lines in Unix/Linux - 6406 views
Set up HTTP PROXY via command line in Linux/FreeBSD - 6300 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