Re: [Bacula-users] Recycle all volumes via bconsole

2016-05-08 Thread Heitor Faria
> Thanks Heitor for the asnwer!! > In the "cut -f 3 -d '|'" from what I understand, this only catching the last 3 > lines. I adapted to catch the last 20 lines for now. After that it was faster > to purge volumes with errors. Hello, Elias. Actually cut -f 3 -d '|' is necessary to fetch the volume

Re: [Bacula-users] Recycle all volumes via bconsole

2016-05-06 Thread Elias Pereira
Thanks Heitor for the asnwer!! In the "cut -f 3 -d '|'" from what I understand, this only catching the last 3 lines. I adapted to catch the last 20 lines for now. After that it was faster to purge volumes with errors. How could I adapt the script to pick up all the volumes with error? This way I

Re: [Bacula-users] Recycle all volumes via bconsole

2016-05-05 Thread Heitor Faria
> Hi Ana, > Thanks for the answer. Have a command that I can delete all volumes with error > in one shot? Hello, Elias: if you want to recycle like you said in original post you can try this script or something similar: # Shell script to purge all Error volumes from a pool. clear && echo "list

Re: [Bacula-users] Recycle all volumes via bconsole

2016-05-05 Thread Elias Pereira
Hi Ana, Thanks for the answer. Have a command that I can delete all volumes with error in one shot? Em 05/05/2016 7:14 PM, "Ana Emília M. Arruda" escreveu: Hello Elias, Yes, you can directly update the database. If using MySQL, something like the bellow: update Media set VolStatus="Used" where

Re: [Bacula-users] Recycle all volumes via bconsole

2016-05-05 Thread Ana Emília M . Arruda
Hello Elias, Yes, you can directly update the database. If using MySQL, something like the bellow: update Media set VolStatus="Used" where VolStatus="Error"; If you're going to do this, set the status to "Used" or "Full" and then bacula will recycle the volumes when its retention periods expires

[Bacula-users] Recycle all volumes via bconsole

2016-05-05 Thread Elias Pereira
Hello guys, I have many volumes with errors and would like to recycle them. I can do this in one command? -- Elias Pereira -- Find and fix application performance issues faster with Applications Manager Applications Mana