Martin Simmons schrieb:
> >>>>> On Wed, 28 Feb 2007 16:26:10 +0100, Ralf Gross said:
> >
> > I'm facing a problem with an other FileSet.
> >
> > The following should backup everything in all 000_INS_ARCHIV directories
> > below
> > /server/projekte. There is at least one directory that matches the
> > regex/wilddir expression at the moment.
> >
> > # ls -l /server/projekte/EAT/test
> > insgesamt 0
> > dr-xr-s--- 2 ralfgro ve 6 2007-02-27 18:18 000_ARCHIV.2007-02-27
> > drwxr-s--- 2 ralfgro ve 6 2007-02-27 18:18 000_INS_ARCHIV
> > drwxr-sr-x 2 root ve 6 2007-02-28 15:24 000_KEIN_BACKUP
> > drwxrws--- 2 ralfgro ve 6 2007-02-27 18:05 test
> >
> >
> > FileSet {
> > Name = "VU0EM003-Archiv"
> > Include {
> > Options {
> > signature = MD5
> > aclsupport = yes
> > #RegexDir = ".*000_INS_ARCHIV.*"
> > #wilddir = "/server/projekte/EAT/test/000_INS_ARCHIV*"
> > wilddir = "*000_INS_ARCHIV*"
> > }
> > Options {
> > RegexDir = ".*"
> > exclude = yes
> > }
> > File = /server/projekte
> > }
> > [snip]
> The problem is that the Options clauses for directories control two things:
> whether to back up of that directory itself and whether to look inside for
> things to back up. Your second options clause stops it looking at any
> directory in /server/projekte :-(
I see what you mean. Because /server/projekte/EAT matches the ".*"
exclude first, the include of the directories below do never match.
This can be confusing.
I'm still curious if there is a way to do this with Options{}.
> I think it is impossible to do what you want with the Options resources. You
> have to use a File clause that finds the archive directories each time, e.g.
>
> File = "\\|find /server/projekte -type d -name '*000_INS_ARCHIV*'"
This is working fine, I added an additional '-maxdepth 3' option to
the find command. This will be sufficient to find all directories we
need.
Ralf
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users