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: li...@lihas.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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to