Re: [Bacula-users] Query regarding Verify Backup

2020-05-12 Thread Marcin Haba
Hello Sachin,

Some time ago I prepared an article that describes Verify jobs in
details, including diagrams and description about what each of Bacula
components do during particular verify job types. This article is in
Polish, but you can use online translator to read it.

https://www.bacula.pl/artykul/61/zadania-weryfikacji-bacula/

Best regards,
Marcin Haba (gani)

On Tue, 12 May 2020 at 09:49, *Sachin* H  wrote:
>
> Hello Experts,
>
> For Audit reasons, we have to somehow prove that the regular backups done on 
> tapes are verified. Is there a verify option available? We use Bacula version 
> of 7.4.0 running on SLES 12.
> Any pointers will be really appreciated.
>
> Thanks in advance.
>
> Regards,
> Admin
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
"Greater love hath no man than this, that a man lay down his life for
his friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Query regarding Verify Backup

2020-05-12 Thread Martin Simmons
> On Tue, 12 May 2020 12:14:33 -0300 (BRT), Heitor Faria said:
> 
> > Hello Heitor,
> 
> Hello Eric,
>  
> > You can also check the job type=verify level=volumetocatalog that can
> > read a tape and compare all attributes with the catalog data. It works
> > at the volume level, and it might be better for tapes.
> 
> This is nice, but I think it would not verify backup stored data portion 
> (only metadata):
> 
> "VolumeToCatalog: This level causes Bacula to read the file attribute data 
> written to the Volume from the last Job. The file attribute data are compared 
> to the values saved in the Catalog database and any differences are reported. 
> This is similar to the Catalog level except that instead of comparing the 
> disk file attributes to the catalog database, the attribute data written to 
> the Volume is read and compared to the catalog database. Although the 
> attribute data including the signatures (MD5 or SHA1) are compared, the 
> actual file data is not compared (it is not in the catalog)."
> 
> I suppose a bad block on the data portion would be undetected? 

Every Bacula block has a checksum, so it should detect media corruption.

__Martin


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Query regarding Verify Backup

2020-05-12 Thread Eric Bollengier via Bacula-users
Hello Heitor,

On 2020-05-12 17:14, Heitor Faria wrote:
>  
>> You can also check the job type=verify level=volumetocatalog that can
>> read a tape and compare all attributes with the catalog data. It works
>> at the volume level, and it might be better for tapes.
> 
> This is nice, but I think it would not verify backup stored data portion 
> (only metadata):
> 
> "VolumeToCatalog: This level causes Bacula to read the file attribute data 
> written to the Volume from the last Job. The file attribute data are compared 
> to the values saved in the Catalog database and any differences are reported. 
> This is similar to the Catalog level except that instead of comparing the 
> disk file attributes to the catalog database, the attribute data written to 
> the Volume is read and compared to the catalog database. Although the 
> attribute data including the signatures (MD5 or SHA1) are compared, the 
> actual file data is not compared (it is not in the catalog)."
> 
> I suppose a bad block on the data portion would be undetected? 

On tape it will be detected, it is usually not possible to read a bad
block without an error, the tape drive is supposed to check it.

Note that bls or bscan will not check if the data is consistent, but it
will do the same, read all blocks and trigger hardware errors.

Best Regards,
Eric


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Query regarding Verify Backup

2020-05-12 Thread Heitor Faria
> Hello Heitor,

Hello Eric,
 
> You can also check the job type=verify level=volumetocatalog that can
> read a tape and compare all attributes with the catalog data. It works
> at the volume level, and it might be better for tapes.

This is nice, but I think it would not verify backup stored data portion (only 
metadata):

"VolumeToCatalog: This level causes Bacula to read the file attribute data 
written to the Volume from the last Job. The file attribute data are compared 
to the values saved in the Catalog database and any differences are reported. 
This is similar to the Catalog level except that instead of comparing the disk 
file attributes to the catalog database, the attribute data written to the 
Volume is read and compared to the catalog database. Although the attribute 
data including the signatures (MD5 or SHA1) are compared, the actual file data 
is not compared (it is not in the catalog)."

I suppose a bad block on the data portion would be undetected? 

Regards,
-- 
MSc Heitor Faria 
CEO Bacula LATAM 
mobile1: + 1 909 655-8971 
mobile2: + 55 61 98268-4220 
[ https://www.linkedin.com/in/msc-heitor-faria-5ba51b3 ] 
[ http://www.bacula.com.br/ ] 

América Latina 
[ http://bacula.lat/ | bacula.lat ] | [ http://www.bacula.com.br/ | 
bacula.com.br ]


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Query regarding Verify Backup

2020-05-12 Thread Eric Bollengier via Bacula-users
Hello Heitor,

On 2020-05-12 14:36, Heitor Faria wrote:
>> Hello
> 
> Hello Wanderlei and Sachin, 
> 
>> You can use Verify Jobs. Take a look in the manual:
>> [
>> https://www.bacula.org/9.6.x-manuals/en/main/Configuring_Director.html#SECTION00213
>> |
>> https://www.bacula.org/9.6.x-manuals/en/main/Configuring_Director.html#SECTION00213
>> ]
> 
> I think the Verify Job is very unpractical for the OP requirements, since you 
> can't (e.g.) tell Bacula to Verify a bunch of jobs or all jobs from a tape. 
> It is necessary to specify the original jobs to Verify, one by one. 
> Perhaps, a btape read test, or even a bscan or bls would be more practical. I 
> wish bconsole itself had such a media test command. 

If you run the backup job with the level=data, it will check
automatically the last job present in the catalog. You can schedule this
level after the backup job for example. It is probably better to have a
different priority, then you can run also the verify jobs after the
backup jobs. It is fully automatic.

It is also possible to use a runscript command to fire the verify job
when you want with the when= parameter (the timing is important).

You can also check the job type=verify level=volumetocatalog that can
read a tape and compare all attributes with the catalog data. It works
at the volume level, and it might be better for tapes.

Best Regards,
Eric


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Query regarding Verify Backup

2020-05-12 Thread Heitor Faria
> Hello

Hello Wanderlei and Sachin, 

> You can use Verify Jobs. Take a look in the manual:
> [
> https://www.bacula.org/9.6.x-manuals/en/main/Configuring_Director.html#SECTION00213
> |
> https://www.bacula.org/9.6.x-manuals/en/main/Configuring_Director.html#SECTION00213
> ]

I think the Verify Job is very unpractical for the OP requirements, since you 
can't (e.g.) tell Bacula to Verify a bunch of jobs or all jobs from a tape. It 
is necessary to specify the original jobs to Verify, one by one. 
Perhaps, a btape read test, or even a bscan or bls would be more practical. I 
wish bconsole itself had such a media test command. 

Regards, 
-- 

MSc Heitor Faria 
CEO Bacula LATAM 
mobile1: + 1 909 655-8971 
mobile2: + 55 61 98268-4220 
[ https://www.linkedin.com/in/msc-heitor-faria-5ba51b3 ] 
[ http://www.bacula.com.br/ ] 

América Latina 
[ http://bacula.lat/ | bacula.lat ] | [ http://www.bacula.com.br/ | 
bacula.com.br ] 
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Query regarding Verify Backup

2020-05-12 Thread Wanderlei Huttel
Hello

You can use Verify Jobs. Take a look in the manual:
https://www.bacula.org/9.6.x-manuals/en/main/Configuring_Director.html#SECTION00213


You Just need to create a VerifyJob:

Job{
  Name = "Verify_Data"
  Type = Verify
  Level = Data
  JobDefs = "DefaultJob"
  Enabled = no
}

run job=Verify_Data fileset=FileSet_Bacula client=bacula-fd jobid=9


Best regards

*Wanderlei Hüttel*



Em ter., 12 de mai. de 2020 às 04:49, *Sachin* H 
escreveu:

> Hello Experts,
>
> For Audit reasons, we have to somehow prove that the regular backups done
> on tapes are verified. Is there a verify option available? We use Bacula
> version of 7.4.0 running on SLES 12.
> Any pointers will be really appreciated.
>
> Thanks in advance.
>
> Regards,
> Admin
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users