Re: [Bacula-users] fileset: second eyes needed
2012-07-26 14:33:48
>>>>> On Wed, 25 Jul 2012 08:34:08 -0400 (EDT), Steve Thompson said:
>
> I have a large file system (/mnt/home, 60TB) whose backups are split into
> multiple jobs. Two jobs in particular: one to backup all directories whose
> names begin with "s" except for st123, and a second job to backup just st123:
> ...
> The file sets are as follows:
>
> FileSet {
> Name = "home_s"
> Include {
> Options {
> wilddir = "/mnt/home/s*"
> }
> Options {
> exclude = yes
> wilddir = "/mnt/home/st123"
> RegexDir = ".*"
> }
> Options {
> compression = GZIP4
> sparse = yes
> noatime = yes
> }
> File = /mnt/home
> }
> }
> ...
> All is well with the home_st123 job: it backups up only what is expected.
> However, the home_s job backups up only the directories whose name begins
> with "s", but it also backs up st123, which has been excluded. Presumably
> I have the Options clauses incorrectly defined?
I think you need to split the Options clauses differently.
Bacula scans them in order and accepts/rejects as soon as one matches, so your
first clause matches only the directories whose name begins with "s"
(including st123) and the second clause rejects everything else.
Something like this will work:
FileSet {
Name = "home_s"
Include {
Options {
exclude = yes
wilddir = "/mnt/home/st123"
}
Options {
wild = "/mnt/home/s*"
compression = GZIP4
sparse = yes
noatime = yes
}
Options {
exclude = yes
RegexDir = ".*"
}
File = /mnt/home
}
}
__Martin
------------------------------------------------------------------------------
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
|
|
|