We have app servers with smallish local file systems and application data mounted over NFS.
Sometimes I want to find all files matching a particular set of criteria but don't want to traverse the NFS mounts.
Here's how to do it:
find / -group sophosav -print -o -fstype nfs -prune
Ordering is important, as is the explict inclusion of -print. If you omit this, it will print the name(s) of the NFS mounts as well.
Change start location (/) and criteria (-group sophosav) to suit your own purposes.