Bacula-users

Re: [Bacula-users] Bacula not compressing even though it's in the config

2008-09-04 06:52:13
Subject: Re: [Bacula-users] Bacula not compressing even though it's in the config
From: Arno Lehmann <al AT its-lehmann DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 04 Sep 2008 12:51:59 +0200
Hi,

04.09.2008 08:11, Joshua J. Kugler wrote:
> I have a Bacula setup working well backing up two Windows boxes.  It's 
> using VSS, but it's not honoring the compression setting (i.e. it's not 
> compressing).  I've read the sections about file sets and VSS.  As far 
> as I can tell, my config is right.  Can someone tell me what might be 
> wrong with the fileset below. Thanks!

The key section would have been the one talking about the order of 
options sections :-)

First I believe your excludes will not work because "Once Bacula 
determines that the Options resource matches the file under 
consideration, that file will be saved without looking at any other 
Options resources that may be present. This means that any wild cards 
must appear before an Options resource without wild cards.

[...]

However, one additional point is that in the case that no match was 
found, Bacula will use the options found in the last Options resource. 
As a consequence, if you want a particular set of "default" options, 
you should put them in an Options resource after any other Options."

In other words, move your default options section so it's the last one 
in this fileset you should get the results you want.

Arno

> FileSet {
>   Name = "winDefault"
> 
>   Include {
> 
>     Options {
>       signature = SHA1
>       compression = GZIP
>       verify = s1
>     }
> 
>     Options {
>       Exclude = yes
>       IgnoreCase = yes
>       WildFile = "*.mp3"
>       WildFile = "*.wma"
>       WildFile = "*.m4a"
>       WildFile = "*.m4p"
>       WildFile = "*.asx"
>       WildFile = "*.wmv"
>     }
> 
>     Options {
>       Exclude = yes
>       IgnoreCase = yes
>       # Most of these files are excluded not because we don't want
>       #  them, but because Win2K won't allow them to be backed up
>       #  except via proprietary Win32 API calls.
>       WildFile = "c:/Documents and Settings/*/Application 
> Data/*/Profiles/*/*/Cache/*"
>       WildFile = "c:/Documents and Settings/*/Local Settings/Application 
> Data/Microsoft/Windows/[Uu][Ss][Rr][Cc][Ll][A$
>       WildFile = "c:/Documents and Settings/*/[Nn][Tt][Uu][Ss][Ee]
> [Rr].*"
>       WildFile = "c:/Documents and Settings/*/Cookies/*"
>       WildFile = "c:/Documents and Settings/*/Local Settings/History/*"
>       WildFile = "c:/Documents and Settings/*/Local Settings/Temporary 
> Internet Files/*"
>       WildFile = "c:/Documents and Settings/*/Local Settings/Temp/*"
> 
>       # Exclude Mozilla-based programs' file caches
>       WildDir = "[A-Z]:/Documents and Settings/*/Application 
> Data/*/Profiles/*/*/Cache"
>       WildDir = "[A-Z]:/Documents and Settings/*/Application 
> Data/*/Profiles/*/*/Cache.Trash"
>       WildDir = "[A-Z]:/Documents and Settings/*/Application 
> Data/*/Profiles/*/*/ImapMail"
> 
>       # Exclude user's registry files - they're always in use anyway.
>       WildFile = "[A-Z]:/Documents and Settings/*/Local 
> Settings/Application Data/Microsoft/Windows/usrclass.*"
>       WildFile = "[A-Z]:/Documents and Settings/*/ntuser.*"
>       # Exclude directories full of lots and lots of useless little 
> files
>       WildDir = "[A-Z]:/Documents and Settings/*/Cookies"
>       WildDir = "[A-Z]:/Documents and Settings/*/Recent"
>       WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/History"
>       WildDir = "[A-Z]:/Documents and Settings/*/Local Settings/Temp"
>       WildDir = "[A-Z]:/Documents and Settings/*/Local 
> Settings/Temporary Internet Files"
> 
>       # These are always open and unable to be backed up
>       WildFile = "[A-Z]:/Documents and Settings/All Users/Application 
> Data/Microsoft/Network/Downloader/qmgr[01].dat"
>     }
>     File = "c:/Documents and Settings"
>   }
> }
> 

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users