Re: [Bacula-users] Fileset: How exclude all except...
2011-06-18 09:23:04
On 06/16/2011 10:38 AM, Christian Manal wrote:
> Am 16.06.2011 18:12, schrieb Stuart McGraw:
>> I am having some difficulty specifying a fileset.
>>
>> I want to exclude all dot files in home directories
>> ("/home/*/.*"), *except* the directories "/home/*/.backup/".
>>
>> Any hints on how to do this?
>
> I asked something simmilar a while back. Look here:
>
> <http://sourceforge.net/mailarchive/message.php?msg_id=27098562>
Thanks. Scripting a file list dynamically is a little
heavy-weight for what I was looking for though.
I was hoping that there was some way of saying "backup a/"
but exclude "a/b" but include "a/b/c", but exclude "a/b/c/d"...
i.e, includes and excludes could be cascaded somehow.
But from reading the documentation about 30 times and
the lack of response here, I conclude that it's not
possible; one only gets one level of include/exclude.
I tried using an exclude regex,
regex = "^/home/[^/]+/\\.(?!backup(/|$))"
which should do what I want. But bacula-dir complains it
is invalid.
Does Bacula include it's own regex code? Is it possible to
(easily) build it with a less-anemic regex library? (I am
using the stock Bacula-5.0.3 distributed in Fedora 15).
Finally (in case it helps someone else), I was able to use
a more basic regex that does the same as above but which is
obviously a lot less clear:
Regex =
"^/home/[^/]+/\\.([^b]|(b([^a]|$))|(ba([^c]|$))|(bac([^k]|$))|(back([^u]|$))|(backu([^p]|$))|(backup[^/]))"
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|