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.
If anyone else has suggestions please let me know. TIA On Mon, Oct 13, 2008 at 11:57 PM, Matt McCutchen <[EMAIL PROTECTED]> wrote: > On Mon, 2008-10-13 at 22:50 -0400, Mag Gam wrote: >> Would it be more efficient to use rsync to get filestats instead of >> using the 'find' command? I would like to know how big a directory is >> on a filesystem, but this directory has millions of small files. I was >> wondering if rsync would be more efficient than find when using "-n" >> options. > > I assume that by "filestats" you mean stat(2) information for each file, > not aggregate statistics. My guess is that "find" would be faster than > "rsync -n" because it doesn't send the stat information to other > processes like rsync does. In addition, "find -printf" has a > configurable output format, while the "rsync --list-only" output format > is fixed. > > Matt > > -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html