From owner-freebsd-questions Tue Apr 2 00:16:36 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA19519 for questions-outgoing; Tue, 2 Apr 1996 00:16:36 -0800 (PST) Received: from aztec.co.za (aztec.co.za [196.7.70.131]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id AAA19432 for ; Tue, 2 Apr 1996 00:15:44 -0800 (PST) Received: from pcmgate.pcm.co.za [196.3.254.241] by aztec.co.za with smtp (Smail3.1.29.1 #2) id m0u41DU-000aqZC; Tue, 2 Apr 96 10:13 EET Received: from IRVINEP5 (irvinep5.pcm.co.za [196.3.226.90]) by pcmgate.pcm.co.za (8.6.12/8.6.12) with SMTP id KAA02035; Tue, 2 Apr 1996 10:06:19 +0200 Message-Id: <199604020806.KAA02035@pcmgate.pcm.co.za> Comments: Authenticated sender is From: "Irvine Short" Organization: Professional Computer Manufacturers To: freebsd-questions@freebsd.org Date: Tue, 2 Apr 1996 10:10:26 +2 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Backup Software Reply-to: ishort@pcm.co.za CC: zgabor@CoDe.hu X-Confirm-Reading-To: ishort@pcm.co.za X-pmrqc: 1 Priority: normal X-mailer: Pegasus Mail for Windows (v2.30) Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Gabor, others Thanks for the advice. I am rapidly learning that lateral thinking is an essential quality for this kind of thing... > > Failing that, how do I tell find to list all the files on my hard > > disk except a certain directory tree? > > 1) Try to `grep it out' with something like this: > > find / -depth -print | grep -v '^/you/dont/like/this/directory/to/backup' | > cpio -o .... > > (and use more greps, if you have more dirs -- or use > egrep -v '/dir1|/dir2|/dir3' instead > > 2) Maybe the find -prune option (action) is for you - sorry, I never used it Regards, Irvine Short http://www.pcm.co.za/homepage/ishort/irv_home.html Technical Support Professional Computer Manufacturers Cape Town, South Africa Tel: ++27-21-235084 Fax ++27-21-235089