On 1/23/24 02:59, Pierre Bernhardt wrote:
Hello,

after a raid disaster which needs a full restore based on the
last full backup on tape which has unreadable blocks and
blocks the whole tape drive I want to check the written jobs.

A good idea is to create a copy job so I have a copy of the
written data which also checks the tape by reading them.

By the way I want to test the tape job only so I mean it
should be possible to write the copy data simply to /dev/null.

Is it possible to use the fifo device? Is there another
possibility to read the tape regularly?

Pierre


Hello Pierre,

Yes, a Copy job will need to read the backup data and by doing so, Bacula will verify the signature (checksum) of each file read. You would be notified in the job of a failure to read back a file with the correct checksum.

But, as the name implies, you will be copying the data to another storage location, and hence using some additional space - E
ven if it is only a temporary scratch space for your copies to be written to.

Alternately, you can run a Verify (level=data) job which read the data from the backup media, also verifying the checksum of every file read - without actually writing the data to a second storage location.

I have written a script which (just for testing purposes), when calls from a Backup Job's RunScript (RunsWhen = After), automatically restores the entire job but also runs all three Verify levels against the job. You can pick the parts of the script you need (maybe just the Verify level=data), and remove/comment out the rest, or just pick and choose what you need.

I am attaching the script `AutoRestoreAndVerify.sh` which I use in my environment. Please edit the variables at the top and read through the instructions at the top of the script to understand how to implement this script.

I hope this helps.


Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com

Attachment: AutoRestoreAndVerify.sh
Description: application/shellscript

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to