Re: How to run bconsole commands in a bash for loop?

Rob Gerber <[email protected]>
Newsgroups gmane.comp.bacula.user
Message-ID <CAMKi9mQPCgx+=sHMSbQbUjPvSpPT6V2Bhucpm0QJb0kbfwEjjg@mail.gmail.com>
Also, please note the following gotchas:

My runbook is not a script. Read and paste commands in once you've
customized them, or just use them to inform your commands.

Any commands that delete something on disk are commented out, for safety in
case someone blindly pastes the thing into terminal.

In my experience, the postgres commands need to be pasted in one at a time,
with a little delay between commands. Pasting them together as a block for
sequential execution hasn't worked well for me in the past.

Robert Gerber
402-237-8692
[email protected]

On Tue, Sep 16, 2025, 12:43 PM Bill Arlofski via Bacula-users <
[email protected]> wrote:

> On 9/16/25 10:39 AM, Gary Dale wrote:
>  >>   echo "purge volume ${volname} yes" | bconsole
>
> Hello Gary, you forgot the `=` sign (with no spaces):
>
> # echo "purge volume=${volname} yes" | bconsole
>
> If it were me, I would use the `delete` command instead, and also rm the
> Bacula file volumes from disk if they exist.
>
>
> Hope this helps,
> Bill
>
> --
> Bill Arlofski
> [email protected]
> _______________________________________________
> Bacula-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>

_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.