Is it functionally possible to have only one simple progress bar represent the whole rsync operation?
On Sat, Sep 25, 2004 at 11:53:48AM -0400, Full Decent wrote:> Is it functionally possible to have only one simple progress bar > represent the whole rsync operation?You could have a percent represent how far in the file list we are, but that is a very inaccurate indication of how much work is to be done. This is because rsync doesn't know in advance how many files need to be transferred nor how much data will match, so I don't think such a progress bar would be very useful without adding an extra pre-pass through all the files in the generator, counting up differences and trying to create an estimate of how much work will need to be done (perhaps based on file-size differences as a crude estimate). Such a pre-pass would slow down rsync, so it's not something that would be universally useful (probably only for smallish sets of files over a slow net connection). ..wayne..
On Mon, Sep 27, 2004 at 03:18:12PM -0400, Full Decent wrote:> I think this largely inaccurate representation would be useful for > something like, say, the gentoo portage tree.Hmm, yes, I used gentoo for a while, and having a huge collection of small files would be one case where an indication of just how far through the file-list we were would be a pretty good indication of how done the command was. I suppose it would be better for the average gentoo user too, since it wouldn't flood the screen so much. Such an option would be fairly easy to implement since we already output such a value for how far we are through the file list in the modern --progress output. Perhaps something like updating this on a single line: Transferred 4 files. Scanned 49% of 58394 files. Thoughts? ..wayne..
Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/rsync/attachments/20040927/8a9cb271/attachment.bin
On Mon, Sep 27, 2004 at 12:35:22PM -0700, Wayne Davison wrote:> Transferred 4 files. Scanned 49% of 58394 files. > > Thoughts?I like it. How about more, like this: Transferred 4 files, 18.6MB. Scanned 23588 of 58394 files (49%). Current: /foo/bar/blech/bar/baz.c 65% |***************************** | 13849 KB 00:01 With all three lines updating frequently. danno -- dan pritts systems administrator internet2