Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 1996 10:10:26 +2
From:      "Irvine Short" <ishort@pcm.co.za>
To:        freebsd-questions@freebsd.org
Cc:        zgabor@CoDe.hu
Subject:   Re: Backup Software
Message-ID:  <199604020806.KAA02035@pcmgate.pcm.co.za>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604020806.KAA02035>