Amanda-Users

Re: Rename tape labels?

2003-11-04 13:04:15
Subject: Re: Rename tape labels?
From: Dave Ewart <Dave.Ewart AT cancer.org DOT uk>
To: amanda-users AT amanda DOT org
Date: Tue, 4 Nov 2003 17:00:37 +0000
On Friday, 31.10.2003 at 17:07 -0500, Eric Siegerman wrote:

> > Is there anyway I can change tape label names after I'm well into
> > amanda dumpcycle? I currently have TLS-Set-1-01.. Set-1-02..
> > Set-2-01 and so on.  I want to get rid of this set concept from the
> > label.
> 
> This is untested; treat it with caution...
> 
>  1. To begin the process, change the "labelstr" regexp in
>     amanda.conf so that both the old and new label styles are
>     recognized.
> 
>  2. For the next tapecycle's worth of dumps, you'll have a mix of
>     old- and new-style labels.  Each day that a tape with an
>     old-style label comes up to be reused:
>      a. Do "amrmtape <config> <old-label>"
> 
>      b. Relabel the tape with a new-style label.  Amanda will
>       consider it to be a "new tape", but that's ok.
>     
>  3. After all of the old-style tapes have been relabelled, change
>     "labelstr" again, to only accept the new style of labels
> 
> 
> WARNINGS:
>   - DO NOT do (2) all at once for all of the tapes; you'll
>     clobber your backups.  Make sure you do those steps, for each
>     tape, just before Amanda would have overwritten that tape
>     anyway.
> 
>   - If you're still on your first tapecycle, i.e. you're still
>     adding new tapes one at a time, you'll have to finish adding
>     in your new tapes before you can even begin step (2).
> 
>   - During this process, you're circumventing all (or most) of
>     Amanda's protections against clobbering the wrong tape.  So
>     be careful!

I'm interested in doing this too, for various reasons.  Anyone actually
tried something like this?

Dave.
-- 
Dave Ewart
Dave.Ewart AT cancer.org DOT uk
Computing Manager, Epidemiology Unit, Oxford
Cancer Research UK
PGP: CC70 1883 BD92 E665 B840 118B 6E94 2CFD 694D E370


<Prev in Thread] Current Thread [Next in Thread>
  • Re: Rename tape labels?, Dave Ewart <=