Re: [Bacula-users] FileSet Directive questions
2008-05-17 19:02:56
Hi,
17.05.2008 02:37, LDB wrote:
> Is there anyway to exclude files larger than xMB?
Well, if you *really* want this...
> Something like the following ...
Not built into Bacula, but possible using a dynamically created file
list. I'd use find to do that, so your fileset would contain - in the
excluded include section - something like "\\|/path/to/find /path/
/path2/ /path3/ ... -size +xM -print"'. If the file names are not
controlled by you or can contain blanks, you should use '... -print0 |
script_to_quote_filenames'. The script could be something like 'xargs
-0 -I '#' /bin/echo '"#"'' but you better test that yourself... and I
really hope you never encounter file names with a newline in them...
quoting characters also can be fun...
Or, to keep quoting simpler, use a script like
#!/bin/sh
/usr/bin/find /path/ /path2/ /path3/ ... -size +xM -print0 | sed -e
's/"/\\"/' | xargs -0 -I '#' /bin/echo '"#"'
which you reference in the fileset.
Arno
> FileSet {
> Name = "Full Set"
> Include {
> Options {
> Compression=GZIP
> signature=SHA1
> Sparse = yes
> }
> @/etc/backup.list
> }
> Include {
> Options {
> wildfile = "*.o"
> wildfile = "*.exe"
> Exclude = yes
> }
> File = /root/myfile
> File = /usr/lib/another_file
> }
> }
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
--
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|