Bacula-users

Re: [Bacula-users] Non-bacula: Tar restore in an autochanger

2011-07-25 16:36:37
Subject: Re: [Bacula-users] Non-bacula: Tar restore in an autochanger
From: Adrian Reyer <bacula-lists AT lihas DOT de>
To: Alan Brown <ajb2 AT mssl.ucl.ac DOT uk>
Date: Mon, 25 Jul 2011 22:34:30 +0200
On Mon, Jul 25, 2011 at 05:37:46PM +0100, Alan Brown wrote:
> I've been handed a tar backup comprising 66 (yes really) LTO4 tapes.
> For obvious reasons I'd prefer not to have to load the tape drive 
> manually for each tape. Does anyone have pointers (or even better a 
> script) on automating this kind of restore?

Sorry, I have no script and never have been in a situation like yours.
But tar is 'tape archiver' and it knows
 -M for multi volume archive
 -F run script at end of each tape (implies -M)

I'd use -F to call a script that
- unmounts the current tape
- mounts the next one
  - either by 'mtx next' + some end of slots logic
  - mtx load SLOT
- if it has been the last tape in the changer prompts for a new set of
  tapes
- else exits for tar to continue

Regards,
        Adrian
-- 
LiHAS - Adrian Reyer - Hessenwiesenstraße 10 - D-70565 Stuttgart
Fon: +49 (7 11) 78 28 50 90 - Fax:  +49 (7 11) 78 28 50 91
Mail: lihas AT lihas DOT de - Web: http://lihas.de
Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users