Bacula-users

[Bacula-users] FileSet Question

2012-06-26 22:38:28
Subject: [Bacula-users] FileSet Question
From: Bryan Harris <bryanlharris AT me DOT com>
To: bacula-users Mailing List <bacula-users AT lists.sourceforge DOT net>
Date: Tue, 26 Jun 2012 21:35:40 -0500
Hello all,

While running a job, if I look at the status of the client, bacula appears to be selecting files I don't want.  If, say, I only want to backup "*.txt" files, the status makes it seem as though the server is backing up _all_ files.  I'm using bacula 5.2.5 for both the client and server.  I had used the bregex program and from my results my expressions looked okay (or so I thought).

The command I'm running for the status is:

echo status client=MyClient | bconsole -n | grep 'Processing File:'

Here is what my FileSet looks like.  I'm trying to go off the example in the Bacula book (~page 178 in my version of main.pdf), where they say to express the files you want (above) and then use ".*" to exclude everything else (below) that you _don't_ want.  Maybe I'm using the example incorrectly?  I know they used wilddir  in the book where as I use RegexFile and RegexDir, I was hoping regex in its place would work out okay.

Does anyone see what I might be doing wrong?  Should I be using RegexDir = ".*" instead of RegexFile = ".*"?

FileSet {
  Name = bryanslack
  Include {
    Options {
      signature = SHA1
      compression = LZO
      aclsupport = yes
      xattrsupport = yes
      accurate = mcs
      basejob = mcs
    }
    Options {
      Ignore Case = yes
      RegexFile = ".*\.((wi|ba|tc|c|z|k)?sh)|pl|tcl|exp(ect)?|patch|diff$"
      RegexFile = ".*\.(a|ada|adb|ali|c|cpp|dat|h|prep|z)$"
      RegexFile = ".*\.(rtf|txt|pdf|doc|docx|xls|xlsx|xml|js(o)?n)$"
      RegexFile = ".*\.(jpg|gif|tiff|png|bmp)$"
      RegexFile = ".*(rpm[-]std(err|out)|build|error(s)?)\.log$"
    }
    Options {
      Ignore Case = yes
      Exclude = yes
      RegexDir = "^/build_views/(bryan|foo|bar).*"
      RegexFile = ".*"
    }
    File = /boot
    File = /etc
    File = /root
    File = /build_views
  }
}

Bryan
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Bacula-users] FileSet Question, Bryan Harris <=