Bacula-users

Re: [Bacula-users] losing directory permissions and ownership

2009-10-28 00:33:08
Subject: Re: [Bacula-users] losing directory permissions and ownership
From: Avi Rozen <avi.rozen AT gmail DOT com>
To: Martin Simmons <martin AT lispworks DOT com>
Date: Wed, 28 Oct 2009 06:25:54 +0200
Martin Simmons wrote:
> You need to match the parent directories themselves and then the contents of
> owned-by-bacula:
>
> FileSet {
>   Name = test-fileset
>   Include {
>     Options {
>         # Match all directories leading up to the cherry picked directory
>         regexdir = "^/home$"
>         regexdir = "^/home/avrozen$"
>         regexdir = "^/home/avrozen/temp$"
>         regexdir = "^/home/avrozen/temp/bacula-test$"
>         regexdir = "^/home/avrozen/temp/bacula-test/owned-by-root$"
>         regexdir = 
> "^/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen$"
>         # Match the cherry picked directory itself
>         regexdir = 
> "^/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen/owned-by-bacula$"
>         # Match the contents of the cherry picked directory
>         wild = 
> "/home/avrozen/temp/bacula-test/owned-by-root/owned-by-avrozen/owned-by-bacula/*"
>     }
>     Options {
>         # Skip everything else
>         wild = "*"
>         Exclude = yes
>     }
>     File = /
>   }
> }
>
> Note the $ at the end of each regexdir to make it match only the directory and
> nothing else with that prefix.
>
> __Martin
>
>   
Works! Thanks!

It also works if I replace regexdir with wilddir (and remove the ^ and $).

I actually tried something like that, since this is what you described
verbally, but I must have missed something, because it didn't seem to
work then. Too tired...

Thanks,
Avi.

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users