Re: [Bacula-users] fileset question
2009-05-15 10:00:04
1) regex is more powerful (and therefore slow) for what you're trying to
do. WildFile is probably what you'd want instead.
2) You can't do both an include and an exclude of the same directory.
3) Start with something really basic. Take out all the exclusions and then
you're just left with the File line.
Then put all the exclusions in one Options block. It looks to me like you
only want to include each user's Desktop, My Documents, and Thunderbird
folders. Have you looked at how big it would be to just include everything
under Documents and settings with possible temp directory exceptions?
That would be quite a lot simpler... like so...
FileSet {
Name = "XP_WS4"
EnableVSS=yes
Include {
Options {
Signature = MD5
compression=GZIP
ignore case = yes
exclude = yes
WildFile = "*.lnk"
WildFile = "*.mp3"
WildFile = "*.wma"
WildDir = "*/temp"
WildDir = "*/temporary*"
}
File = "C:/Documents and Settings"
}
Also, are you sure you'd want to exclude .lnk files?
Also, after setting this up, you can log the list of files it gets with the
command
@output /tmp/file-listing.txt
estimate listing job=<jobname>
@output
I typically look over those lists for stuff to exclude, but mainly I sort
it by size to exclude big stuff that wouldn't be useful, such as installers
for acrobat reader, etc.
Bob
> From: Jeff Dickens <jeff AT m2.seamanpaper DOT com>
> Subject: Re: [Bacula-users] fileset question
> To: bacula-users <bacula-users AT lists.sourceforge DOT net>
> Message-ID: <4A0C8C03.6050007 AT m2.seamanpaper DOT com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Maybe if I had the answers to those questions I would understand why
> this fileset is totally non-functional. It backs up just the top level
> directories under "Documents and Settings".
>
> FileSet {
> Name = "XP_WS4"
> Include {
> Options {
> exclude = yes
> RegEx = ".*\.lnk"
> RegEx = ".*\.mp3"
> RegEx = ".*\.wma"
> }
> Options {
> signature = MD5
> compression=GZIP
> WildDir = "C:/Documents and
> Settings/*/Application Data/Thunderbird"
> WildDir = "C:/Documents and
> Settings/*/Application Data/Thunderbird/*"
> RegExDir = "C:/Documents and Settings/[^/]+$"
> }
> Options {
> exclude = yes
> Wild = "C:/Documents and Settings/*"
> }
> File = "C:/Documents and Settings"
> }
> }
>
>
> Jeff Dickens wrote:
>> > Here it is:
>> >
>> > FileSet {
>> > Name = "XP_WS3"
>> > Include {
>> > Options {
>> > exclude = yes
>> > RegEx = ".*\.lnk"
>> > RegEx = ".*\.mp3"
>> > RegEx = ".*\.wma"
>> > }
>> > Options {
>> > signature = MD5
>> > compression=GZIP
>> > WildDir = "C:/Documents and Settings/*/My
>> > Documents"
>> > Wild = "C:/Documents and Settings/*/My
>> > Documents/*"
>> > WildDir = "C:/Documents and Settings/*/Desktop"
>> > Wild = "C:/Documents and Settings/*/Desktop/*"
>> > RegExDir = "C:/Documents and Settings/[^/]+$"
>> > }
>> > Options {
>> > exclude = yes
>> > Wild = "C:/Documents and Settings/*"
>> > }
>> > File = "C:/Documents and Settings"
>> > }
>> > }
>> >
>> > Thanks to those that responded to Robin Bonin's thread about a year
>> > ago, in particular Martin Simmons.
>> >
>> > I have two follow-up questions:
>> >
>> > What exactly is the RegExDir directive doing? I understand what the
>> > regex is doing, but how does that help here, since all the WildDirs
>> > are getting "ored" together.. what does it match that the others don't?
>> >
>> > Secondly, does anyone else agree that it would be desirable to have
>> > the fileset look more like this:
>> >
>> > Include {
>> > Rational_Filespec: = "C:/Documents and Settings/*/My Documents"
>> > Rational_Filespec: = "C:/Documents and Settings/*/Desktop"
>> > }
>> >
>> > instead of the dog's breakfast?
>> >
>> >
>> >
>> > Jeff Dickens wrote:
>>> >> Is there any way to accomplish what I'm trying to do here ?
>>> >>
>>> >> FileSet {
>>> >> Name = XP_WS2
>>> >> Enable VSS = yes
>>> >> Include {
>>> >> Options {
>>> >> signature = MD5
>>> >> compression = GZIP
>>> >> IgnoreCase = yes
>>> >> Wild = "C:/Documents and Settings/*/Desktop/*"
>>> >> Wild = "C:/Documents and Settings/*/Documents/*"
>>> >> }
>>> >> Options {
>>> >> Exclude = yes
>>> >> Wild = "C:/Documents and Settings/*"
>>> >> }
>>> >> File = "C:/Documents and Settings"
>>> >> }
>>> >> }
>>> >>
>>> >>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|