find in ISC 2.02

Randy Jarrett rsj at wa4mei.UUCP
Fri Jul 27 12:40:30 AEST 1990


In <2618 at lamont.ldgo.columbia.edu> fritzz at lamont.ldgo.columbia.edu (fritz zaucker) writes:

>I use find to backup my system (together with cpio or afio).
>I have a couple of mounted file systems, which I don't want to
>backup. Therefore I used the -local switch to find.
>This works fine. Unfortunately there is one very huge file system
>mounted (/usr/spool/news). Because of that, find spents a very long 
>time in looking through this directory tree.
>Is there a way to prevent that (except unmounting it)?

>Thanks
>Fritz

I was having a similar problem at work. I had a system to backup
that had two nfs file systems mounted.  The work-a-round that I ended
up using was as follows.

	/bin/ls / | grep -v unwanted-file-system >/tmp/files
	sort -o /tmp/files /tmp/files	(I like neat lists)
	cat /tmp/files | cpio(or afio) -options >/dev/tape-device

This way eliminates the need to unmount the file system or waste
a lot of time searching through unwanted directories.

---

Randy Jarrett  WA4MEI 
UUCP  ...!{emory,gatech}!wa4mei!rsj   | US SNAIL: P.O. Box 941217
PHONE +1 404 493 9017		      |           Atlanta, GA 30341-0217



More information about the Comp.unix.i386 mailing list