Bacula-users

Re: [Bacula-users] Mistaken append of job to media

2011-06-07 16:10:30
Subject: Re: [Bacula-users] Mistaken append of job to media
From: Phil Stracchino <alaric AT metrocast DOT net>
To: Rory Campbell-Lange <rory AT campbell-lange DOT net>
Date: Tue, 07 Jun 2011 16:07:03 -0400
On 06/07/11 15:41, Rory Campbell-Lange wrote:
> On 07/06/11, Rory Campbell-Lange (rory AT campbell-lange DOT net) wrote:
>> On 07/06/11, Phil Stracchino (alaric AT metrocast DOT net) wrote:
>>> On 06/07/11 12:14, Rory Campbell-Lange wrote:
>>>> Does deleting the job remove the data (in this case the data for job
>>>> 329) off the tape? That is what I need to do.
> ...
>>> If it's really, really important to you that no trace of job 329 remain
>>> on that tape, then you need to migrate both job 315 AND job 329 to new
>>> media, then purge the old media, manually erase it from beginning to end
>>> with something like mt, and then relabel it.  But if it's really that
>>> important to you that no trace of data from one job ever remain on a
>>> tape used by another, then you need to be erasing and relabelling your
>>> tapes between EVERY use.[1]  I'm going to go out on a limb here and
>>> guess that you probably don't actually want or need to be doing that.
> 
> Actually, can't I retrieve the last file off job 315, forward a bit for
> safety, write WEOF, and then write garbage from there?

That SHOULD be safe, but I'd verify on a scratch tape first.  The
potential issue here is that Bacula both records in the catalog, and
marks on the tape label, the number of data files (not backed up files,
physical chunks of the backup stream) have been written to the tape, and
the numbers need to match.  So if I were you, I'd run a small test job
on a scratch tape and verify the technique before you use it on your
production data.

-- 
  Phil Stracchino, CDK#2     DoD#299792458     ICBM: 43.5607, -71.355
  alaric AT caerllewys DOT net   alaric AT metrocast DOT net   phil AT 
co.ordinate DOT org
  Renaissance Man, Unix ronin, Perl hacker, SQL wrangler, Free Stater
                 It's not the years, it's the mileage.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users