rsync overall progress patch

Kevin Korb kmk at sanitarium.net
Wed Jan 18 13:58:28 MST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rsync doesn't know the overall size until it finishes indexing the
source tree which since v3 is done while files are being copied.
Again, rsync will be almost done when it learns the overall size of
the source tree.  Unless you disable incremental recursion which will
slow things down and increase memory usage.

On 01/18/12 15:55, Victor Denisov wrote:
> I understand that it's impossible to know how many files will be
> transferred, but it has field with overall size of files to be
> synced. And I want to know size of files that are already
> processed(not transferred, but transferred or skipped). If I have
> this information I can provide some kind of progress. It will not
> be very good progress(since it can go fast or slow), but it can
> present some indication.
> 
> From: Kevin Korb <kmk at sanitarium.net <mailto:kmk at sanitarium.net>> 
> To: rsync at lists.samba.org <mailto:rsync at lists.samba.org> Cc: Date:
> Tue, 17 Jan 2012 19:53:45 -0500 Subject: Re: rsync overall progress
> patch -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
> 
> Rsync does not know what files it will need to send until it is 
> finished (or transferring the last file that it needs to
> transfer). Also, when doing delta transfers it has no idea how much
> of a particular file it will have to transfer until it is done with
> that file.
> 
> See the man page section on --recursive for more info.
> 
> On 01/17/12 19:47, Victor Denisov wrote:
>> Hi everyone,
>> 
>> I'm trying to implement calculation of overall progress for
>> rsync. Currently it shows progress only on per file basis.
>> 
>> So I need for the feature size of all files to be synced - this
>> is obvious and already exists in the code.
>> 
>> I can calculate size of transferred files, but I can't find the 
>> piece of code that is responsible for calculation of checksums.
>> I don't understand which part of code compares chunks of files
>> and evaluates which of them should be actually transferred.
>> 
>> So the question is: where is the source code responsible for 
>> checksums calculation and chunks transfer?
>> 
>> Thanks, Victor.
>> 
>> 
> 
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
	Kevin Korb			Phone:    (407) 252-6853
	Systems Administrator		Internet:
	FutureQuest, Inc.		Kevin at FutureQuest.net  (work)
	Orlando, Florida		kmk at sanitarium.net (personal)
	Web page:			http://www.sanitarium.net/
	PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8XMnQACgkQVKC1jlbQAQdyyACg8CFMJ5kMNTtKb0thLVpwf90B
jWwAnjr3PDIrlP5QSZnFqFhZqszBOVWD
=2MRC
-----END PGP SIGNATURE-----


More information about the rsync mailing list