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
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users