Re: [Bacula-users] Defining a FileSet

2006-03-23 Thread Carlo Agrusti
Andrus Naulainen ha scritto lo scorso 23/03/2006 08:39:
 Hello
 
 I have problem with defining a FileSet. Let's say I want to backup just
 one directory for every user in the machine. It's c:/Documents and
 Settings/*/My Documents where * indicates the user name. As I
 understand I have to use Options where Exclude expression is set to
 yes and exclude all other directories except My Documents. I thought
 that RegexDir = ^c:/Documents and Settings/*/[^(My Documents)] will
 do, but using Regex expression gave me an error  message that Regex is
 not available in the system.

I think that you can fix the first problem with this:

http://gnuwin32.sourceforge.net/packages/regex.htm

Furthermore, I believe that your regex expression is not very well
formed (but I can easily be wrong - I have ever fighted with regexes).


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Defining a FileSet

2006-03-23 Thread Andrus Naulainen



I think that you can fix the first problem with this:

http://gnuwin32.sourceforge.net/packages/regex.htm
  
I forget to mention that my Director is running on Debian Sarge machine. 
So, I installed libregex0 package 
(http://packages.debian.org/stable/oldlibs/libregex0) but still get the 
error.



Andrus


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Defining a FileSet

2006-03-23 Thread Carlo Agrusti
Andrus Naulainen ha scritto lo scorso 23/03/2006 10:36:
 
 I think that you can fix the first problem with this:

 http://gnuwin32.sourceforge.net/packages/regex.htm
   
 
 I forget to mention that my Director is running on Debian Sarge machine.
 So, I installed libregex0 package
 (http://packages.debian.org/stable/oldlibs/libregex0) but still get the
 error.
 
Yes, but the file daemon is running on a windows box. I'm not sure of
this, but I believe that the regex expansion is performed by fd; I think
that it is just like for compression: if you use the compression =
GZIP directive in your bacula-dir.conf, you need to have zlib1.dll
installed on your (windows) client.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Defining a FileSet

2006-03-23 Thread Martin Simmons
 On Thu, 23 Mar 2006 09:39:50 +0200, Andrus Naulainen [EMAIL PROTECTED] 
 said:
 
 Hello
 
 I have problem with defining a FileSet. Let's say I want to backup just 
 one directory for every user in the machine. It's c:/Documents and 
 Settings/*/My Documents where * indicates the user name. As I 
 understand I have to use Options where Exclude expression is set to 
 yes and exclude all other directories except My Documents. I thought 
 that RegexDir = ^c:/Documents and Settings/*/[^(My Documents)] will 
 do, but using Regex expression gave me an error  message that Regex is 
 not available in the system.
 
 Any tips, how to solve missing regex problem or maybe I even don't need 
 it and there are another way to solve my FileSet problem?
 
 
 Version of my bacula director - Version: 1.36.2 (28 February 2005)
 
 Include{
Options{
   RegexDir = ^c:/Documents and Settings/*/[^(My Documents)]
   Exclude = yes
 }
File = c:/Documents and Settings/
 }
 

I think [^(My Documents)] is wrong here anyway, because it matches any single
character not in the set of chars '(', 'M', 'y', space, 'D', etc.  There is no
regex not operator, so you can't create a regex that matches when a subregex
fails to match.

The trick is to include what you need and then exclude the rest,
i.e. something like this:

Include{
   Options{
  # Include these.
  WildDir = c:/Documents and Settings/*/My Documents
}
   Options{
  # Exclude everything else.
  Exclude = yes
  Wild = c:/Documents and Settings/*/*
}
   File = c:/Documents and Settings/
}

Note that this will include entries for the directories c:/Documents and
Settings/ and c:/Documents and Settings/*/ themselves, but not their
contents.  This is necessary to make Bacula look inside them to find the My
Documents directory.

__Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users