Re: [Bacula-users] wildfile, wilddir and exclude pattern examples(that work with 2.4.4)
2009-03-09 07:50:12
On 09.03.2009, at 11:20, Gerald Leier wrote:
> Hello,
Hi,
>
> Is there some kind of archive containing valid
> bacula FileSet configurations available somewhere?
You might want to check out the wiki:
http://wiki.bacula.org/doku.php?id=sample_configs
>
> Even sniplets like for example exclude patterns
> would be very helpfull in figuring out how to do
> it right.
>
> The following example is something that looks
> ok to me but doesnt work at all and makes bacula
> barf about allmost every line contained within
> the exclude options.(the ones containing wild*)
>
> Also im a little confused about Exclude{} and
> Exclude=yes... comparing rel-bacula.pdf with
> the provided default configurations and the
> few google hits just made that worse.
>
> i use bacula 2.4.4.
>
> ---------------------------------------------------
> FileSet {
> Name = "WinxpFull"
> Enable VSS = yes
> Include {
> Options {
> signature = SHA1
> compression=GZIP
> ignore case = yes
> }
> File = c:/
> File = d:/
> }
> Exclude {
> File = "c:/temp"
> File = "d:/temp"
> wilddir = "c:/windows/temp*"
> wilddir = "*temporary internet files*"
> wildfile = "*pagefile.sys"
> wildfile = "*.log"
> wildfile = "*system32/perflib*.dat"
> }
> }
> ---------------------------------------------------
> bacula-dir -t
> Config error: Keyword wilddir not permitted in this resource
>
> any hints would be very appreciated.
If you include "exclude = yes" in your Exclude {} block then all Files
and/or directories selected would be excluded. If you leave out the
exclude=yes statement then everything will be _included_ (seems weird
to me since the block is clearly called Exclude...)
First of all a Exclude {} block accepts only "File" directives. If you
want to exclude files and/or directories based on wildcards or regexps
than you have to put these insind an Options {} block. If you include
"exclude = yes" in your Options {} block then all Files and/or
directories selected would be excluded. If you leave out the
exclude=yes statement then everything will be _included_
Following your example the FileSet should look like this:
FileSet {
Name = "WinxpFull"
Enable VSS = yes
Include {
Options {
wilddir = "c:/windows/temp/*"
wilddir = "*temporary internet files*"
wildfile = "*pagefile.sys"
wildfile = "*.log"
wildfile = "*system32/perflib*.dat"
exclude = yes
}
Options {
signature = SHA1
compression=GZIP
ignore case = yes
}
File = c:/
File = d:/
}
Exclude {
File = "c:/temp"
File = "d:/temp"
}
}
Note that if you put something inside an Exclude {} block it will be
completely ignored (the whole directory). If you have to restore your
system then there will be no temp dir on you disks.
>
>
> sincerely yours
> Gerald
>
> --
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source
> code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
regards,
Stefan Sorin Nicolin
http://nicolinux.org/timr
---
Unix guy, Mac head, Rails wannabe,
iPhone Dev-ious, Computer Science
alumnus, usability guesspert and
overall big time visionary
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|