On Wednesday 08 June 2005 15:57, Sebastian Stark wrote:
> Thanks for answering.
>
> On Wednesday 08 June 2005 14:55, Kern Sibbald wrote:
> > > I am pretty sure it's just a few bytes that got corrupted. What can I
> > > do access my data?
> >
> > I suspect that you are confused about the difference in how Bacula
> > handles writing a tape and reading a tape.  It is clear that the tape is
> > damaged and that Bacula cannot write on it without recycling the tape. 
> > However, it does not appear you have tried to use Bacula to restore from
> > the tape.

>
> That's true. But how can I make sure that I'm really able to restore the
> very last byte of the last file? If I just restore some file I'm still not
> sure that _everything_ is okay.

Restore the last job on the tape.

>
> > - Simply start using another tape for your appends, possibly redoing any
> > saves in progress during the power failure (as determined from the
> > catalog).  If Bacula was writing the tape when the power outage occurred
> > unless you are very cleaver, it is not going to ever try to read from the
> > Job/Jobs it was writing.
>
> That would mean we loose at least three weeks of incremental backups and I
> want to avoid that. 

I don't see why that should happen. The data on the tape before the last job 
is most likely valid and can be used by Bacula.

> Besides this, how would I find out what jobs are 
> affected? SQL query?

list jobs
(get the jobids of the jobs when the power fail happened and if you want more 
info do)
llist jobid=nnn

>
> We are trying a bcopy to a file storage right now. 

Bad strategy.  You are wasting your time IMO.

> If only the last bacula 
> file is corrupted (as it seems), wouldn't it be the best way to truncate it
> and redo only that last job? 

Re-run the job as I previously suggested.

> What kind of data is missing if bacula does 
> not find the EOD? 

If you take my suggestions, Bacula will never look for the EOD, so the 
question is moot (does not apply).

> If the bcopy succeeds we could simply modify the virtual 
> tape with a hex editor and bcopy it back to a clean tape.

Sorry but that is not possible.

-- 
Best regards,

Kern

  (">
  /\
  V_V


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to