Mon 09 Feb 2004 04:25:47 AM UTC, comment #2:
I was just going to do really rudimentary parsing, like ripping out the filename.
I don't have any particular needs apart from some sort of indication that process is being made.
The first part of this is flushing stdout.
Machine readable output is a second step, I guess a start of a simple spec would be:
Fraction below defaults to 20, settable with flag --machine-readable-progress-markers or similar
(1) Output the filename when it is started to be processed.
(2) Output 1 progress character for each fraction of the comparison operation (= for same, X for difference).
(3) Output 1 progress character for each fraction of the data transferred.
(4) Output bytes transferred
(5) Output filesize in bytes
(6) Newline
E.g. for one file which has been editted in the middle, the output might be
/home/woody/test.txt ========XXXX========.................... 927 4627
This is obviously human readable also.
(2),(3),(4) might be difficult depending on how librsync is used, (1) + (6) only is sufficient for me.
An output at the beginning of the total size of the data being backed up would enable a total progress bar to work too if (5) was included or implemented by the GUI.
The documentation says --parsable-output only affects the --list-increments
|