Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-03-2012, 02:46 AM
|
#1
|
Member
Registered: Apr 2012
Posts: 75
Rep: 
|
progress of rsync
rsync -avz /home/websites/ root@172.18.224.135:/root/test/
how do i get the progress of the rsync in %
|
|
|
08-03-2012, 02:52 AM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
did you try --progress?
Evo2.
|
|
2 members found this post helpful.
|
08-03-2012, 02:53 AM
|
#3
|
Member
Registered: Apr 2012
Posts: 75
Original Poster
Rep: 
|
Quote:
Originally Posted by evo2
Hi,
did you try --progress?
Evo2.
|
yes but is there a way to get it in %
example 20 % completed
thanks for helping
|
|
|
08-03-2012, 03:05 AM
|
#4
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
well, my version of rsync shows the percentage.
Code:
% rsync --version
rsync version 3.0.9 protocol version 30
Copyright (C) 1996-2011 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, ACLs, xattrs, iconv, symtimes
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNU
General Public Licence for details.
% rsync -auv --progress debian-6.0.5-amd64-netinst.iso ~/
sending incremental file list
debian-6.0.5-amd64-netinst.iso
97288192 54% 46.38MB/s 0:00:01 ^C
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(549) [sender=3.0.9]
Evo2.
|
|
2 members found this post helpful.
|
08-03-2012, 05:17 AM
|
#5
|
LQ Newbie
Registered: Jul 2011
Distribution: Centos, Fedora, RHEL
Posts: 12
Rep: 
|
If you use rsync with -v and --progress parameter, you might see something like that:
Code:
59 100% 0.00kB/s 0:00:00 (xfer#1, to-check=0/1)
where "to-check=0/1" represents a overall progress 0 form 1 file, this could be used to calculate progress =)
|
|
1 members found this post helpful.
|
08-03-2012, 06:30 AM
|
#6
|
Senior Member
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238
Rep: 
|
Here's some example how to use rsync with pv (pipe viewer).
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 02:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|