Re: Pattern matching...


Subject: Re: Pattern matching...
From: Bill Fink (billfink@capu.net)
Date: Fri May 04 2001 - 18:25:16 MDT


On Fri May 04 2001, Gawain Reifsnyder wrote:

> I want to back up a directory that contains many subdirectories using
> tar. I want to omit a subdirectory. What kind of regular expression
> would I use to do this assuming the structure is:
>
> parentdirectory
> backmeup
> metoo
> methree
> notme

How about:

tar cfz foo.tar.gz --exclude parentdirectory/notme parentdirectory

                                                -Bill



This archive was generated by hypermail 2a24 : Fri May 04 2001 - 17:30:12 MDT