I'm using GNU Find to create a snapshot of files and their attributes in a
backup script. What I can't find in the manual is an option to exclude
specific file systems & directories, or a similar function to
Tar's --exclude-from option. Find's -mount option prevents descent into
"other" filesystems, which is not flexible enough as I need to create
snapshots for numerous "other" filesystems.

A quick read of the scope at
http://www.gnu.org/manual/findutils-4.1/html_mono/find.html showed that,

These programs enable you to find the files in one or more directory trees
that:

     have names that contain certain text or match a certain pattern;
     are links to certain files;
     were last used during a certain period of time;
     are within a certain size range;
     are of a certain type (regular file, directory, symbolic link, etc.);
     are owned by a certain user or group;
     have certain access permissions;
     contain text that matches a certain pattern;
     are within a certain depth in the directory tree;
     or some combination of the above.

Is there a better way to gather a file list, perhaps using some combination
of find/xargs/locate ?

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to