|
From: Heitor F. <he...@ba...> - 2016-04-02 17:30:10
|
>> 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 =========================================================================== |