Hi Birgit.
To be honest, I fail to see what would be the point of deleting a pool
from a script. If you need to delete a pool, you do it once,
interactively and everything's good.
Of course you can do a delete pool from bconsole but if you don't delete
it from the configuration it'll get recreated as soon as you reload the
configuration or restart the director. And ID of the pool will change.
(even if you're able to delete a pool having media assigned to it, which
I'm not sure you can do, those media would not get re-associated to a
new pool named the same as the old one).
But the bottom line is - why would you even want to do such a thing.
Especially considering that if you want to be able to batch-delete pools
you'd have to have a way to batch-create pools as well (otherwise what
would you be deleting?).
Can you please elaborate a bit more what you're trying to achieve?
On 14.06.2020 22:35, 'DUCARROZ Birgit' via bareos-users wrote:
Hi all,
How can I autodelete a pool (i.ex in a script)?
echo delete pool=Scratch yes | bconsole
--> does unfortunately not work
I can rm /etc/bareos/bareos-dir.d/pool/Scratch.conf, but doing so will
keep listing the pool in my storages list (see print-screen).
Thank you for any help.
Kind regards,
Birgit
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/1e2165db-9584-933c-941f-6f96f3418286%40gmail.com.