Solution for rsync overall progress data display
Kevin Korb
kmk at sanitarium.net
Sun Nov 26 15:31:09 UTC 2017
--info=progress2
On 11/26/2017 09:27 AM, netbsd--- via rsync wrote:
> Hello,
>
> I looking for a solution to display overall rsync progress on an LCD
> display as a bargraph.
> I have found 2 parameters:
>
> --progress
> This option tells rsync to print information
> showing the
> progress of the transfer. This gives a bored user
> something to
> watch. Implies --verbose if it wasn't already specified.
>
> While rsync is transferring a regular file, it
> updates a
> progress line that looks like this:
>
> 782448 63% 110.64kB/s 0:00:04
>
> But they are not showing the overall progress during the transfer what I
> need.
>
> All I would need is to get data out of rsync either the completed data's
> bytes size or completed percentage what I could pipe into another C
> program or a text file what my app could periodically read to construct
> this graph.
>
> One solution would be to run a dry rsync, get the number of overall
> bytes going to be transferred and keep running du -s /datadir to get the
> directories size where the rsync goes into but this is not feasible with
> over 1TB data and lot of small files.
>
> Thank you.
>
--
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
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.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 224 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/rsync/attachments/20171126/646c5d99/signature.sig>
More information about the rsync
mailing list