LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-03-2012, 02:46 AM   #1
figure20012
Member
 
Registered: Apr 2012
Posts: 75

Rep: Reputation: Disabled
progress of rsync


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


how do i get the progress of the rsync in %
 
Old 08-03-2012, 02:52 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,720

Rep: Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703
Hi,

did you try --progress?

Evo2.
 
2 members found this post helpful.
Old 08-03-2012, 02:53 AM   #3
figure20012
Member
 
Registered: Apr 2012
Posts: 75

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

did you try --progress?

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


thanks for helping
 
Old 08-03-2012, 03:05 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,720

Rep: Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703Reputation: 1703
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.
Old 08-03-2012, 05:17 AM   #5
smbdie
LQ Newbie
 
Registered: Jul 2011
Distribution: Centos, Fedora, RHEL
Posts: 12

Rep: Reputation: Disabled
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.
Old 08-03-2012, 06:30 AM   #6
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Here's some example how to use rsync with pv (pipe viewer).
 
1 members found this post helpful.
  


Reply

Tags
rsync


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] rsync execution issue with crontab - Have given full path to rsync too!! Prabagaran Linux - Server 6 04-15-2011 01:39 AM
[SOLVED] rsync fails in cron - ssh key prob for rsync? jonathansfl Linux - Server 6 12-09-2010 09:48 AM
rsync bash script w/ progress bar? babalot Programming 4 04-28-2009 11:09 AM
A progress status for Rsync?? helptonewbie Linux - Newbie 3 03-24-2008 02:05 AM
rsync --progress is there one with just files left? MikeyCarter Linux - Software 0 07-11-2007 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration