Bacula-users

[Bacula-users] regex strangeness with Windows filesets

2008-05-13 09:48:15
Subject: [Bacula-users] regex strangeness with Windows filesets
From: Frans Lawaetz <frans AT tributes DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 13 May 2008 09:46:59 -0400
It is quite possible my regex needs some fixing but it seems to me like
there are inconsistencies in Bacula pattern matching between *nix and
Windows beyond what is noted in the docs.

The following example comes from the documentation:

FileSet {
  Name = "Full Set"
  Include {
     Options {
        wildfile = "*.Z"
        wildfile = "*.gz"
     }
     Options {
        Exclude = yes
        RegexFile = ".*"
     }
     File = /myfile
  }
}

The effect above is to backup only .Z and .gz files.

Below is my Windows Fileset:

FileSet {
Name = "WinClient"
Include {
  Options {
   signature = MD5
   compression = GZIP3
   IgnoreCase = yes
   regexfile = ".*doc"
  }

  Options {
   Exclude = yes
   IgnoreCase = yes
   regexfile = ".*"
   WildDir = "c:/Documents and Settings/Administrator"alost
   WildDir = "c:/Documents and Settings/NetworkService"
   WildDir = "c:/Documents and Settings/All Users"
   WildDir = "c:/Documents and Settings/Default User"
   WildDir = "c:/Documents and Settings/LocalService"
   WildDir = "c:/Documents and Settings/*/Application Data"
   WildDir = "c:/Documents and Settings/*/LocalService"
   WildDir = "c:/Documents and Settings/*/nethood"
   WildDir = "c:/Documents and Settings/*/printhood"
   WildDir = "c:/Documents and Settings/*/LocalService"

  }
  File = "c:/Documents and Settings"
}
}

The intent above is to only capture *.doc files from within the
user's directory.  The output of an estimate run, however, is to capture
all files.  Interestingly the WildDir directives are obeyed and all
directories listed are skipped (including those with wildcards).  But
the "regexfile" directive seems to have no effect.  Per output below,
file test.mp3 is immediately picked up.

Using Catalog "MyCatalog"
Connecting to Client 192.168.32.240 at 192.168.32.240:9102
-rwxrwxrwx   1 0        0          7278452 2008-05-08 14:51:07
c:/Documents and Settings/test/asfd/test.mp3
drwxrwxrwx   1 0        0                0 2008-05-08 11:12:27
c:/Documents and Settings/test/asfd


I have tried a number of permutations of "regexfile" and "wildfile" with a
variety of regex code (*, .*, *.mp3, .*\.mp3$, etc).

I am running bacula-2.2.8 SD, DIR, on CentOS 5.1.  The FD is a Windows
XP SP2 system running Bacula 2.2.10-b2

Thanks in advance for your assistance.










-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users