du (exclude files)

Hi,

I want to get the disk usage of a directory. But I want it to ignore a particular directory within it.

Lets say I want disk usage of all files/dirs within dir1 except those that are named .snapshot

Does du have the option of excluding a particular directory.

du --exclude='.snapshot'

Give that a shot.