>>>>> On Fri, 01 Feb 2008 13:28:45 -0700, jeffrey Lang said:
>
> My question is this: On my netapp device i have ".snapshot"
> directories interspersed in the file system. I need to delete these
> from my backup.
>
> I have tried numerous things, first reading the manual but have not yet
> been successful in making this happen.
>
> Bacula version: Version: 2.2.3 ( i know there is newer versions)
>
> Here;s my configuration for the server to be backed up which NFS mounts
> the filesystems from the netapp.
> ...
> }
> # List of files to be backed up
> FileSet {
> Name = "hp1-home"
> Include {
> Options {
> signature = MD5
> noatime= yes
> }
>
> File = /net/uwyo/vol/vol0
> }
>
> Exclude {
> File = core
> File = ".snapshot"
> }
> }
>
> With the above job definition I still get the ".snapshot" directoies
> included in the backup.
>
> I know that i'm missing something about the EXCLUDE list but i can't
> seem to figure out what.
>
> What do i need to change to exclude all ".snapshot" direcories inthe
> file system?
The problem with the above is that "File =" line must match the whole path.
Instead of using an Exclude clause, you need to put an Options clause at the
start of the Include clause containing something like
wilddir = "*/.snapshot"
exclude = yes
There are examples of this in the FileSet Examples section manual.
__Martin
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users