SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Getting more than wanted in backup
Author Message
Post Getting more than wanted in backup 
To get the multiple streams I've broken my filesets and their corresponding jobs into multiple pieces. The snippets below are 2 of the 7 that I created. I am finding that I am getting everything in /home from each of these filesets and not just the subset of the home directories. Testing with bwild suggests that the RegexDir should be correct. So, what am I missing?

FileSet {
Name = "home_dirs1 Set"
# Capture /home/[0-9]*
Include {
Options {
signature = MD5
RegexDir = "/home/[0-9]*"
}
Options {
RegexDir = ".*" <--I have also tried /home/* to be more explicit
Exclude = yes
}
File = /home
}
}
FileSet {
Name = "home_dirs2 Set"
# Capture /home/[a-e]*
Include {
Options {
signature = MD5
RegexDir = "/home/[a-e]*"
}
Options {
RegexDir = ".*"
Exclude = yes
}
File = /home
}
}

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


------------------------------------------------------------------------------
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 Getting more than wanted in backup 
On Fri, 15 Jun 2012 13:59:26 -0400, Clark, Patricia A said:

To get the multiple streams I've broken my filesets and their corresponding
jobs into multiple pieces. The snippets below are 2 of the 7 that I
created. I am finding that I am getting everything in /home from each of
these filesets and not just the subset of the home directories. Testing
with bwild suggests that the RegexDir should be correct. So, what am I
missing?

FileSet {
Name = "home_dirs1 Set"
# Capture /home/[0-9]*
Include {
Options {
signature = MD5
RegexDir = "/home/[0-9]*"
}
Options {
RegexDir = ".*" <--I have also tried /home/* to be more explicit
Exclude = yes
}
File = /home
}
}
FileSet {
Name = "home_dirs2 Set"
# Capture /home/[a-e]*
Include {
Options {
signature = MD5
RegexDir = "/home/[a-e]*"
}
Options {
RegexDir = ".*"
Exclude = yes
}
File = /home
}
}

Your main RegexDir patterns are wrong: "/home/[0-9]*" matches everything
starting with "/home/" because of the definition of "*" in a regex. You
probably want wilddir = "/home/[0-9]*" instead.

Also, you should wild = "*" instead of RegexDir = ".*".

__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

Post Getting more than wanted in backup 
Thank you for the suggestions. Using wilddir on the includes works much
better than the RegexDir. I did find that using wild = "*" on the
excludes was problematic. I'd backup the directories, but none of the
files. I've switched to using wilddir for the excludes, too, which adds a
level of self-documentation to the fileset. A working example shows the
changes and I just adjust the wilddir statements for the fileset as needed.

FileSet {
Name = "home_dirs1 Set"
# Capture /home/[0-9]*
Include {
Options {
signature = MD5
wilddir = "/home/[0-9]*"
}
Options {
wilddir = "/home/[a-z]*"
wilddir = "/home/[A-Z]*"

Exclude = yes }
File = /home
}
}


Patti


On 6/18/12 2:12 PM, "Martin Simmons" <martin < at > lispworks.com> wrote:

On Fri, 15 Jun 2012 13:59:26 -0400, Clark, Patricia A said:

To get the multiple streams I've broken my filesets and their
corresponding
jobs into multiple pieces. The snippets below are 2 of the 7 that I
created. I am finding that I am getting everything in /home from each
of
these filesets and not just the subset of the home directories. Testing
with bwild suggests that the RegexDir should be correct. So, what am I
missing?

FileSet {
Name = "home_dirs1 Set"
# Capture /home/[0-9]*
Include {
Options {
signature = MD5
RegexDir = "/home/[0-9]*"
}
Options {
RegexDir = ".*" <--I have also tried /home/* to be more
explicit
Exclude = yes
}
File = /home
}
}
FileSet {
Name = "home_dirs2 Set"
# Capture /home/[a-e]*
Include {
Options {
signature = MD5
RegexDir = "/home/[a-e]*"
}
Options {
RegexDir = ".*"
Exclude = yes
}
File = /home
}
}

Your main RegexDir patterns are wrong: "/home/[0-9]*" matches everything
starting with "/home/" because of the definition of "*" in a regex. You
probably want wilddir = "/home/[0-9]*" instead.

Also, you should wild = "*" instead of RegexDir = ".*".

__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

View user's profile Send private message
Post Getting more than wanted in backup 
For the archive, the previous posting in the discussion order. Nothing new.

Op 20120620 om 17:55 schreef Clark, Patricia A.:
On 6/18/12 2:12 PM, "Martin Simmons" <martin < at > lispworks.com> wrote:
On Fri, 15 Jun 2012 13:59:26 -0400, Clark, Patricia A said:

To get the multiple streams I've broken my filesets and their
corresponding jobs into multiple pieces. The snippets below are 2
of the 7 that I created. I am finding that I am getting everything
in /home from each of these filesets and not just the subset of the
home directories. Testing with bwild suggests that the RegexDir
should be correct. So, what am I missing?

FileSet {
Name = "home_dirs1 Set"
# Capture /home/[0-9]*
Include {
Options {
signature = MD5
RegexDir = "/home/[0-9]*"
}
Options {
RegexDir = ".*" <--I have also tried /home/* to be more explicit
Exclude = yes
}
File = /home
}
}
FileSet {
Name = "home_dirs2 Set"
# Capture /home/[a-e]*
Include {
Options {
signature = MD5
RegexDir = "/home/[a-e]*"
}
Options {
RegexDir = ".*"
Exclude = yes
}
File = /home
}
}

Your main RegexDir patterns are wrong: "/home/[0-9]*" matches everything
starting with "/home/" because of the definition of "*" in a regex. You
probably want wilddir = "/home/[0-9]*" instead.

Also, you should wild = "*" instead of RegexDir = ".*".

__Martin

Thank you for the suggestions. Using wilddir on the includes works much
better than the RegexDir. I did find that using wild = "*" on the
excludes was problematic. I'd backup the directories, but none of the
files. I've switched to using wilddir for the excludes, too, which adds a
level of self-documentation to the fileset. A working example shows the
changes and I just adjust the wilddir statements for the fileset as needed.

FileSet {
Name = "home_dirs1 Set"
# Capture /home/[0-9]*
Include {
Options {
signature = MD5
wilddir = "/home/[0-9]*"
}
Options {
wilddir = "/home/[a-z]*"
wilddir = "/home/[A-Z]*"

Exclude = yes }
File = /home
}
}



Cheers
Geert Stappers
http://www.vanadplatform.com/
------------------------------------------------------------------------------
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