Hi folks, I am working on a restore of files from 2 years ago, and it's
exposed some serious flaws in my understanding of Bacula.

A little about my setup: I have a File pool on an HDD partition where my
online backups go. Then I have a manual procedure to migrate the volumes to
BD-RE XL 100GB disc every few months.
Version: 9.6.7 (10 December 2020)

I have not been migrating the .bsr files along with the VolXXXX files, and
that seems like a bad oversight on my part. Now I am reading in the docs
about the need for .bsr when restoring. So I have symlinked to the relevant
bootstrap files and integrated them into the migration process for the
future.

My 2019 backups are spread across 2 Blu-ray discs. I ran bscan with mostly
success, but it coredumps at the very end of the first disc with this
message:

04-May-2021 21:48:41 bscan: bscan.c:658-0 Could not update job record.
ERR=bdb.h:140 Update failed: affected_rows=0 for UPDATE Job SET
JobStatus='E',EndTime='2019-03-01
23:05:00',ClientId=1,JobBytes=354680832,ReadBytes=0,JobFiles=1,JobErrors=0,VolSessionId=7,VolSessionTime=1551383812,PoolId=1,FileSetId=0,JobTDate=1551506700,RealEndTime='2019-03-01
23:05:00',PriorJobId=0,HasBase=0,PurgedFiles=0 WHERE JobId=1920

So as a result, some jobs are restored to my catalog db, but the Full
backup I'm targeting is in a failed state, or even flagged as still
running, and zero-sized. When I explore it with Baculum's restore tool, I
find /home is empty, and I would have noticed 48GB missing during the
backup reports, or the migration. Plus, the incrementals indicate files
from my home directory do exist in those backups with the same FileSets
specified.

So is there some corruption on disc? Have I tickled a bug in the bscan
utility? Is there yet hope for restoring this backup? That's kind of the
raison d'etre of running Bacula in the first place...

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

Reply via email to