using rsync to get filestats

Mag Gam magawake at gmail.com
Tue Oct 14 11:31:38 GMT 2008


Thanks.

Does rsync use stat()? does find use stat() when running with printf?
I think the stat() is the most expensive part.



On Tue, Oct 14, 2008 at 12:30 AM, Matt McCutchen <matt at mattmccutchen.net> wrote:
> On Tue, 2008-10-14 at 00:28 -0400, Mag Gam wrote:
>> Great. Thanks matt. I was using the find method, but I want to find a
>> better way to get my directory sizes. I suppose a find -printf may
>> work.
>
> "find -printf" will give you the sizes of the directories (as lists of
> entries) themselves.  If you want subtree sizes, use "du".
>
> Matt
>
>


More information about the rsync mailing list