>>>>> On Wed, 01 Feb 2006 11:03:36 -0500, Phil Stracchino <[EMAIL PROTECTED]>
>>>>> said:
>
> Stephan Holl wrote:
> > Hello Phil,
> >
> > On Tue, 31 Jan 2006 15:07:35 -0500 Phil Stracchino
> > <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Stephan Holl wrote:
> >>
> >>>I am trying to implement all dot-files into a fileset. but cannot
> >>>manage it correctly. Perhaps someone has done that successfully.
> >>>
> >>>
> >>># TEST-fileset
> >>>FileSet {
> >>> Name = "testfileset"
> >>>
> >>> Include {
> >>> Options {
> >>> wildfile = "*."
> >>> }
> >>> Options {
> >>> Exclude = yes
> >>>
> >>> RegexFile = ".?*$"
> >>> }
> >>> File="/home/user"
> >>> }
> >>>
> >>>}
> >>>
> >>>Perhaps anybody has done this kind of task successfully, because I
> >>>do not have any luck using regex.
> >>
> >>I'm not sure why you'd want JUST the dotfiles, but the usual Unix
> >>shell regex for selecting dotfiles and ONLY dotfiles is: .??*
> >
> >
> > Thanks for that. I will give it a try asap. So only files, no
> > dot-folders I guess.
> >
> > As I am an apsolute RegEx-Dummy, I would kindly ask you to help out
> > here.
>
>
> Perhaps my choice of words was misleading. In the Unix shell, the regex
> .??* will select any file OR FOLDER whose name begins with a dot and
> then contains at least two additional characters. This regex is
> typically ised to select all dotfiles (and folders) without also
> selecting . and .. at the same time.
Right, but I don't think Bacula needs that botch because it doesn't match
against . or .. as a filename. Moreover, it matches the whole path, so I
think following will work:
Options {
# include all files starting with a dot
wildfile = */.*
}
Options {
# exclude everything else
wildfile = *
exclude = yes
}
Note that this also matches all directories. This is necessary if you want to
find non top-level dot files, because the file tree is walked recursively and
so excluding directory /foo/bar would prevent it from considering
/foo/bar/.my-dot-file at all.
BTW, I would avoid calling these things regexes, because it just confuses them
with RegexFile which uses the more traditional regex syntax (not shell
syntax)!
__Martin
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users