>> 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
Just in time, Bill. A less inelegant code bellow: for volname in $(echo "llist media pool=File" |bconsole | grep VolumeName | cut -d ':' -f 2 | tr -d ' '); do echo purge volume=$volname |bconsole; done > Regards, > -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users