Re: How to run bconsole commands in a bash for loop?
Gary Dale <[email protected]>
| Newsgroups | gmane.comp.bacula.user |
|---|---|
| Message-ID | <[email protected]> |
On 2025-09-16 13:43, Bill Arlofski via Bacula-users 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
>
Thanks Bill. It worked.
The reason I didn't use the delete command is that the volumes had an
error status. I had to purge them (changes the status) before deleting them.
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users