Bacula-users

Re: [Bacula-users] How to get label of tape currently in tape drive

2010-04-16 09:37:33
Subject: Re: [Bacula-users] How to get label of tape currently in tape drive
From: John Drescher <drescherjm AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Fri, 16 Apr 2010 09:34:53 -0400
On Fri, Apr 16, 2010 at 9:07 AM, tqz <bacula-forum AT backupcentral DOT com> 
wrote:
>
> Hi John
>
> Thanks for the response. st stor im assuming gives the same output as stauts 
> storgae? Is there a way to simply just get the name of the tape - as I would 
> like to write a script that will purge the current tape in the tape drive so 
> that bacula uses this tape to do the nightly backup.
>

Try something like this.

echo "st storage=DEV6-Changer" | bconsole | grep Volume:


where you replace DEV6-Changer with your storage device name.

John

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users