Bacula-users

Re: [Bacula-users] HELP: Need to compare on-disk and catalog hashes

2008-11-19 13:38:25
Subject: Re: [Bacula-users] HELP: Need to compare on-disk and catalog hashes
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 19 Nov 2008 18:34:47 GMT
>>>>> On Wed, 19 Nov 2008 17:42:02 +0000 (GMT), Alan Brown said:
> 
> On Wed, 19 Nov 2008, Martin Simmons wrote:
> 
> > > Can anyone assist on this?
> >
> > It should compare the signatures (aka file hashes) if configured to do so.
> 
> You'd think so, but all I get is "new" or "removed"
> 
> > What signature and verify options are you using for the fileset?
> 
> Here's an example
> 
> FileSet {
>   Name = "FooBar"
>   Ignore fileset changes = yes
>   Include {
>     Options {
>       aclsupport=yes
>       ignore case = yes
>       sparse = yes
>       noatime=yes
>         exclude = yes
>         regexdir = "te?mp"
>         regexdir = "temporary"
>         regexdir = "nobackup.*"
>         regexdir = "scratch.*"
>         regexdir = ".*cache.*"
>         regexdir = ".*/idfs_promoted.*"
>         wildfile = "*.bkf"
>         wildFile = "*/aquota.group"
>         wildFile = "*/aquota.user"
>         wildFile = "*/quota.group"
>         wildFile = "*/quota.user"
>         wildFile = "*/pagefile.sys"
>         wildFile = "*/hiber.sys"
>         wildFile = "*/core.*"
>         wildFile = "*/core"
>       signature=SHA1
>       onefs = yes
>     }
>     File = /stage/foobar
>   }
> }

I think you need to add

  verify = 1

to the options.  The 1 means verify the SHA1, matching your signature line.

Beware that adding this might change the checksum of the fileset, causing a
full backup next time, so you may need to add Ignore FileSet Changes = yes to
prevent this.

__Martin

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users