using rsync to get filestats

Mag Gam magawake at
Sun Oct 19 00:55:32 GMT 2008

Thanks Matt. I suppose I could use rsync to know how big a directory
is then...right?

rsync --progress -avzL -n /source /foo

That should give me the total number of bytes to transfer

On Wed, Oct 15, 2008 at 3:03 PM, Matt McCutchen <matt at> wrote:
> On Tue, 2008-10-14 at 07:31 -0400, Mag Gam wrote:
>> Does rsync use stat()? does find use stat() when running with printf?
>> I think the stat() is the most expensive part.
> Rsync and "find -printf" both use stat(2).
> Matt

More information about the rsync mailing list