Re: need regex help
2006-08-24 12:04:06
On Thu, Aug 24, 2006 at 10:40:15AM -0400, Jeff Portwine wrote:
> Please forgive me if this comes across twice, I sent the same question
> yesterday but it seems that it never made it to the list.. at least I didn't
> receive my own message if it did.
>
> ------------
>
>
> I want amanda to back up multiple home directories, but I don't want to back
> up everything in /home.
> I tried using syntax like this:
>
> myserver /dev/sdc1 {
> server-user-tar
> include "./home/(user1|user2|user3|user4)*"
> }
>
I don't think the string argument to include/exclude
are "regex" (regular expression) patterns. I believe
they are shell globbing (or file name generation) patterns.
Thus the parentheses and pipe symbol are taken as literal.
Is the mount point of /dev/sdc1 "/" or is it "/home".
If the latter, then your "." in the pattern is already "home".
You might try something like:
myserver HOME-grp1 /home {
server-user-tar
include file ./user1*
include file append ./user2*
include file append ./user3*
include file append ./user4*
}
And though I've not done it, I think the include multiple strings
can be given on the same line:
myserver HOME-grp1 /home {
server-user-tar
include file ./user1* ./user2*
include file append ./user3* ./user4*
}
--
Jon H. LaBadie jon AT jgcomp DOT com
JG Computing
4455 Province Line Road (609) 252-0159
Princeton, NJ 08540-4322 (609) 683-7220 (fax)
|
|
|