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

Bill Arlofski via Bacula-users <[email protected]>
Newsgroups gmane.comp.bacula.user
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 583 B)
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsCpBAEBCABdBYJoyaGpCZBIDTDab9XDQDUUAAAAAAAcABBzYWx0QG5vdGF0
aW9ucy5vcGVucGdwanMub3JnwhQhYq1zsHnHAzy8QhHQxhYhBMuLnlBaSQiu
SUbb6UgNMNpv1cNAAAAmTgf7BxOKWNBzXgx4bU7sCxvFd7rK39fUirMjc3QV
fCJSs2T3mc278bTNsii1KeG9VTArRC+d7urii4LhY30ew7BAPUD/RMeIbWR/
R8EWlBNwRgUPPgByZLlaE4+B+aUhV3nsN+9smrZcbm8coFqfMcSX9s/98gFZ
wCzhc+mOC6VISaI5hTd8j+WarkdMxSUT0nETaaCJyb70ftvny0FKD/gdNriw
IXzgaM+wFvv6wJFQ+fg3PjBImP4nknh9AfYYZ9tcR8FZAicoDEauYX1Pjvy8
KQs3DmnVHEbEDNq/20swSgodPc88TYBxeA0CLiVX1gYSgeoOaiENTDrXBd/d
z1SHeg==
=yavO
-----END PGP SIGNATURE-----
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.