Hello,
I do not have a problem in the sense that something does not work - I
just would like to hear some opinions as I am not sure how fool proof my
solution is:
SITUATION
There are multiple clients and I like to have one fileset for all of
them. As they are quite similar. Each one looks like
/u01
/u02
...
/u09
/u10
...
/uNN
the number of /uNN directories is variable. But not more than 2 digits.
Each /uNN directory is a mountpoint. It is never NFS. Always local disks.
I want to avoid the
File = "\\|sh -c \"<some-shell-command>" "
approach as it would IMHO cause me a headache to write a shell command
that works on all my OSes with different shell/find/awk/... versions.
MY SOLUTION
Make the fileset with 'onfs=no' and include '/'. Then use regular
expressions to exclude everything but the things I want. Here is what I
have so far:
FileSet {
Name = "Data-UNIX-FileServer"
Ignore FileSet Changes = yes # can't effort a full right now
Include {
Options {
signature=MD5
onefs = no # cross all filesystems
fstype = ext2 # should avoid possible NFS mounts?
regex = "^\/u[0-9]{2}" # /u01 to /uNN directories
}
Options {
# exclude just everything
exclude = yes
regex = ".*"
}
# the regular expressions will filter things
File = /
}
}
this seems to work so far. I tested it with estimate listing on 1.38.0
(FD, Dir, SD) and the list looks very promising. I did not actually run
a backup job yet.
can anyone see any problems with this procedure?
Maybe beside possible mount-loops because of onefs=yes. I tried to limit
that possibility further down by adding fstype=ext2. Is that supposed to
work as I expect?
a side note: when adding 'Include=yes' to the first options resource
bacula gives me a syntax error saying that this is not known at this
position. According to one sample in the manual it /should/ be valid?
However I can not find the include option mentioned in the options list
- so I would guess that the FileSet example is outdated.
best regards,
Stephan
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users