Amanda-Users

[Amanda-users] best way to organise tape file listings ?

2009-02-19 17:40:23
Subject: [Amanda-users] best way to organise tape file listings ?
From: rory_f <amanda-forum AT backupcentral DOT com>
To: amanda-users AT amanda DOT org
Date: Thu, 19 Feb 2009 17:36:42 -0500

rory_f wrote:
> 
> Dustin J. Mitchell wrote:
> > On Thu, Feb 19, 2009 at 2:52 PM, rory_f <amanda-forum < at > 
> > backupcentral.com> wrote:
> > 
> > > how hard would it be to migrate our naming convention over to match our 
> > > labels ? is there any way of doing it?
> > > 
> > 
> > Well, the Amanda label is written on each tape, at the beginning -- so
> > you'd need to do some tape-drive trickery to rewrite that
> > (single-block) file without overwriting the following data.  I'm not
> > sure tape drives can do that.
> > 
> > The remaining adjustments in Amanda's metadata would be tricky, but
> > not impossible (basically a global search-and-replace over all of
> > Amanda's metadata would do the trick).
> > 
> > Dustin
> > 
> > -- 
> > Storage Software Engineer
> > http://www.zmanda.com
> 
> 
> Yeah
> A lot more hassle than it is worth.
> 
> Which ever way i figure out is best i'll be sure to post here and let you 
> guys know.. ;)


I got a script working with php... shows the disklist then the label and the 
resulting tape. results like so:

[amanda@backup tor]$ ./figureouttapes.php |head
/array/sata-1/show/SHOTS/033x010
                        located on: AmaTor-002 MRX157L3
/array/sata-1/show/SHOTS/033x010
                        located on: AmaTor-003 MRX158L3
/array/sata-1/show/SHOTS/148Ax050
                        located on: AmaTor-003 MRX158L3
/array/sata-1/show/SHOTS/148Ax050
                        located on: AmaTor-004 MRX159L3
/array/sata-1/show/SHOTS/148Ax050
                        located on: AmaTor-005 MRX170L3
:D

+----------------------------------------------------------------------
|This was sent by rory AT mrxfx DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------