LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2013, 06:03 PM   #1
yzT!
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 168

Rep: Reputation: 2
About rsync --progress


Assume I have these two folders:

A: a,b,c
B:

When using
Code:
rsync --progress A B
it shows the progress of each file.

Is it possible that instead of this, it shows the overall progress? Because otherwise it is kinda useless unless you are copying one large file.

I would like that whether I'm backing up 12412421 files, know how long it will takes, how much have been copied already, etc.
 
Old 02-17-2013, 07:20 PM   #2
tsester
Member
 
Registered: Dec 2011
Distribution: Gentoo
Posts: 47

Rep: Reputation: 2
time rsynv -rv A/ B/

EDIT 2: always look out for the '/' in "A/"

Last edited by tsester; 02-17-2013 at 07:24 PM.
 
Old 02-18-2013, 08:31 AM   #3
yzT!
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 168

Original Poster
Rep: Reputation: 2
that keeps showing the same, list each file and its progress.

I need a overall progress, like if I were using a gui (e.g. nautilus)
 
Old 02-18-2013, 09:44 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
The problem is that you need to know the total size of the transfer before rsync actually runs, but this is not the case, unless you run a trial session with the --dry-run option in advance. Indeed you can retrieve this information and use pv to display a progress bar.

However, the latest development version of rsync has the ability to show the overall progress using the option
Code:
--info=progress2
You can give it a try (nightly snapshots are available here: http://rsync.samba.org/ftp/rsync/nightly/) by compiling from the source code, without overwriting the current installation.
 
1 members found this post helpful.
Old 02-18-2013, 02:53 PM   #5
yzT!
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 168

Original Poster
Rep: Reputation: 2
Indeed! That's what I need. Just tried it and works perfect.
 
  


Reply


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
progress of rsync figure20012 Linux - Newbie 5 08-03-2012 07:30 AM
Could I run rsync to download files from a server without rsync daemon? Richard.Yang Linux - Software 1 09-18-2009 05:08 AM
rsync bash script w/ progress bar? babalot Programming 4 04-28-2009 12:09 PM
A progress status for Rsync?? helptonewbie Linux - Newbie 3 03-24-2008 03:05 AM
rsync --progress is there one with just files left? MikeyCarter Linux - Software 0 07-11-2007 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:38 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