Re: tar and excluding a directory (solved)

2004-02-22 Thread Oliver Fuchs
On Sat, 21 Feb 2004, Patrick Wiseman wrote: > I think what you're looking for is "--exclude==PATTERN" which excludes > files (remember that, in UN*X, everything's a file, including directories) > which match the pattern. I always substitute 'v' for 'c' the first time I > run a tar command, to mak

Re: tar and excluding a directory (solved)

2004-02-22 Thread Oliver Fuchs
On Sat, 21 Feb 2004, Roberto Sanchez wrote: > This should be what you need: > > tar -czf root_bak-$(date +%Y%m%d).tar.gz / --exclude=/dev/* > Yes exactly ... thank you for the example. I was confused about the exlude file passage in the man pages. So thanx again for your help. Oliver -- ... d