SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
FileSet Question
Author Message
Post FileSet Question 
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

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB