SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
fileset: second eyes needed
Author Message
Post fileset: second eyes needed 
Bacula 5.0.2, CentOS 5.8 x86_64.

I need a second pair of eyes on this.

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:

Job {
Name = "home_s"
JobDefs = "defjob"
Pool = Pool_home_s
Write Bootstrap = "/var/lib/bacula/home_s.bsr"
Client = client-fd
FileSet = "home_s"
Schedule = "Saturday4"
}

Job {
Name = "home_st123"
JobDefs = "defjob"
Pool = Pool_home_st123
Write Bootstrap = "/var/lib/bacula/home_st123.bsr"
Client = client-fd
FileSet = "home_st123"
Schedule = "Saturday1"
}

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
}
}

FileSet {
Name = "home_st123"
Include {
Options {
compression = GZIP4
sparse = yes
noatime = yes
}
File = /mnt/home/st123
}
}

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?

TIA,

Steve
--
----------------------------------------------------------------------------
Steve Thompson E-mail: smt AT vgersoft DOT com
Voyager Software LLC Web: http://www DOT vgersoft DOT com
39 Smugglers Path VSW Support: support AT vgersoft DOT com
Ithaca, NY 14850
"186,282 miles per second: it's not just a good idea, it's the law"
----------------------------------------------------------------------------

------------------------------------------------------------------------------
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.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Post fileset: second eyes needed 
I found this line:
RegexDir = ".*"
In the exclude options to be the issue. I've removed it and have been
getting the exact backups required.


Patti Clark
Information International Associates, Inc.
Linux Administrator and subcontractor to:
Research and Development Systems Support Oak Ridge National Laboratory


On 7/25/12 8:34 AM, "Steve Thompson" <smt < at > vgersoft.com> wrote:

Bacula 5.0.2, CentOS 5.8 x86_64.

I need a second pair of eyes on this.

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:

Job {
Name = "home_s"
JobDefs = "defjob"
Pool = Pool_home_s
Write Bootstrap = "/var/lib/bacula/home_s.bsr"
Client = client-fd
FileSet = "home_s"
Schedule = "Saturday4"
}

Job {
Name = "home_st123"
JobDefs = "defjob"
Pool = Pool_home_st123
Write Bootstrap = "/var/lib/bacula/home_st123.bsr"
Client = client-fd
FileSet = "home_st123"
Schedule = "Saturday1"
}

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
}
}

FileSet {
Name = "home_st123"
Include {
Options {
compression = GZIP4
sparse = yes
noatime = yes
}
File = /mnt/home/st123
}
}

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?

TIA,

Steve
--
--------------------------------------------------------------------------
--
Steve Thompson E-mail: smt AT vgersoft DOT com
Voyager Software LLC Web: http://www DOT vgersoft DOT
com
39 Smugglers Path VSW Support: support AT vgersoft DOT com
Ithaca, NY 14850
"186,282 miles per second: it's not just a good idea, it's the law"
--------------------------------------------------------------------------
--

--------------------------------------------------------------------------
----
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.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
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.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

View user's profile Send private message
Post fileset: second eyes needed 
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.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

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