file statistics collection using stat(2) data obtained by rsync

Matt McCutchen hashproduct+rsync at
Sat Sep 15 15:32:05 GMT 2007

Note: In the future, please Cc the rsync list in your responses so
that others can help you if I become unavailable and so that future
users can refer to your message.

On 9/15/07, Hugo Connery <hmc at> wrote:
> I want to obtain summary statistics grouped by file owner and access times.    i.e at the
> end of the operation report for each user the number of bytes that the user has stored
> that has been accessed within a group of time periods (last 3 months, 3-6 months, 6-12 months etc.)
> This basically forms a table of data sizes.

The calculation of these statistics appears to be completely
orthogonal to what rsync is doing (copying files).  Unless keeping the
number of stat(2) calls low is critical in your scenario, I think it
would be much easier and more appropriate to write a separate script
to calculate the statistics.


More information about the rsync mailing list