Bacula-users

Re: [Bacula-users] Purge all volumes in a pool

2016-04-02 13:15:00
Subject: Re: [Bacula-users] Purge all volumes in a pool
From: Heitor Faria <heitor AT bacula.com DOT br>
To: bacula-users AT lists.sourceforge DOT net
Date: Sat, 2 Apr 2016 14:10:43 -0300 (BRT)
> Is there one command to purge a pool? It's tedious going through each single
> volume for large sets.

Hello, Bill: I think there is not. You can purge a volume with a single line 
command in bconsole (purge volume=volume_name), or use the bellow script 
changing the Pool Name:

for volname in $(echo "list media pool=File" |bconsole | cut -f 3 -d '|' | tail 
-3 | tr -d " " | grep -v -e "+-----"); do echo purge volume=$volname |bconsole; 
done

Regards,
-- 
=========================================================================== 
Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified 
Administrator II 
Do you need Bacula training? http://bacula.us/video-classes/ 
+55 61 8268-4220 
Site: http://bacula.us FB: heitor.faria 
===========================================================================

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users