On 08/19/2014 08:10 AM, Heitor Faria wrote:
>>> The way every proper unix utility works is
>>>
>>> bconsole -c "delete volume=xyz" -y
>>
>> Bacula will do this for you without any other tools; you just need to
> amend the delete volume line to include "yes" on the end to suppress the
> prompt, e.g.
>> "delete volume=ABC123 yes"
>>
>> It doesn't appear to be documented in the manual but does work (I just
> tested it).
>
> Maybe not in the manual but I think the "help delete" command brings yes as
> a possible argument.
Not in 5.0 it doesn't:
*help delete
Command Description
======= ===========
delete Delete volume, pool or job
Arguments:
volume=<vol-name> pool=<pool-name> jobid=<id>
When at a prompt, entering a period cancels the command.
*
As for the fine manual, all it says is "-n No conio (for scripting)" and
"-n" doesn't seem to do squat.
Anyway, thanks guys, next time I need to delete a bunch of volumes I'll
give the "delete volume yes" a try.
--
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
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
|