Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucsd!swrinde!emory!wa4mei!rsj From: rsj@wa4mei.UUCP (Randy Jarrett) Newsgroups: comp.unix.i386 Subject: Re: find in ISC 2.02 Keywords: ISC Message-ID: <655@wa4mei.UUCP> Date: 27 Jul 90 02:40:30 GMT References: <2618@lamont.ldgo.columbia.edu> Organization: Amateur Radio Gateway WA4MEI, Chamblee, GA Lines: 25 In <2618@lamont.ldgo.columbia.edu> fritzz@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