LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   progress of rsync (https://www.linuxquestions.org/questions/linux-newbie-8/progress-of-rsync-4175420123/)

figure20012 08-03-2012 02:46 AM

progress of rsync
 
rsync -avz /home/websites/ root@172.18.224.135:/root/test/


how do i get the progress of the rsync in %

evo2 08-03-2012 02:52 AM

Hi,

did you try --progress?

Evo2.

figure20012 08-03-2012 02:53 AM

Quote:

Originally Posted by evo2 (Post 4744750)
Hi,

did you try --progress?

Evo2.

yes but is there a way to get it in %
example 20 % completed


thanks for helping

evo2 08-03-2012 03:05 AM

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.

smbdie 08-03-2012 05:17 AM

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 =)

Mr. Alex 08-03-2012 06:30 AM

Here's some example how to use rsync with pv (pipe viewer).


All times are GMT -5. The time now is 12:36 AM.