Re: [Bacula-users] Fileset: How exclude all except...
2011-06-18 16:09:13
Hello,
> I want to exclude all dot files in home directories
> ("/home/*/.*"), *except* the directories "/home/*/.backup/".
>
> Any hints on how to do this?
If you want to exclude dot _files_ (i.e. you don't care about
directories whose name starts with a dot other than .backup), and
assuming you're backing up the whole /home directory, this would be enough:
FileSet
{
Include
{
Options
{
exclude = yes
wildfile = "/home/*/.*"
}
File = /home
}
}
If you also wish to exclude other dot-directories, I would try something
like:
FileSet
{
Include
{
Options
{
wilddir = "/home/*/.backup"
}
Options
{
exclude = yes
wild = "/home/*/.*"
}
File = /home
}
}
Regex directives are another option, but IMHO they are a bit overkill
for this problem.
HTH,
andrea
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|