-   Linux - Newbie (
-   -   progress of rsync (

figure20012 08-03-2012 02:46 AM

progress of rsync
rsync -avz /home/websites/ root@

how do i get the progress of the rsync in %

evo2 08-03-2012 02:52 AM


did you try --progress?


figure20012 08-03-2012 02:53 AM


Originally Posted by evo2 (Post 4744750)

did you try --progress?


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

thanks for helping

evo2 08-03-2012 03:05 AM


well, my version of rsync shows the percentage.


% rsync --version
rsync  version 3.0.9  protocol version 30
Copyright (C) 1996-2011 by Andrew Tridgell, Wayne Davison, and others.
Web site:
    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
    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]


smbdie 08-03-2012 05:17 AM

If you use rsync with -v and --progress parameter, you might see something like that:

          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.