Bacula-users

[Bacula-users] scripting bconsole (Re: vchanger and "intervention needed")

2014-08-18 18:23:27
Subject: [Bacula-users] scripting bconsole (Re: vchanger and "intervention needed")
From: Dimitri Maziuk <dmaziuk AT bmrb.wisc DOT edu>
To: Josh Fisher <jfisher AT pvct DOT com>
Date: Mon, 18 Aug 2014 17:21:00 -0500
On 10/31/2013 02:53 PM, Josh Fisher wrote:

> I don't think so. Wildcards in 'delete volume' would be pretty 
> dangerous. You can, though, run bconsole from a shell script. I use the 
> following on Centos.
...
>     bconsole <<EOD
> delete volume=${mag}_${s}
> EOD
>     n=`expr $n + 1`
> done

Sorry to follow-up (almost) a year later, but now that I need to do this
again -- are you sure it actually works on your machine? 'cause I get it
spitting out

This command will delete volume vchanger_0006_0044
and all Jobs saved on that volume from the Catalog
Are you sure you want to delete Volume "vchanger_0006_0044"? (yes/no):
Are you sure you want to delete Volume "vchanger_0006_0044"? (yes/no):
Connecting to Director localhost:9101
1000 OK: holstein-dir Version: 5.0.0 (26 January 2010)
Enter a period to cancel a command.
    delete volume=vchanger_0006_0045
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
...

very fast.

Does anyone know if v.5.2.13, or 7 has a usable interface? 'Cause with
stock centos 6 (5.0) typing sql at psql prompt seems to be the easiest
way to get anything done...

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>