Re: [Bacula-users] How to remove all volumes?

2022-03-21 Thread Justin Case
Thank you Chris and Martin! What I then did was use the Baculum Volumes view, filter for all volumes that are not purged and set them to Purged. It is easier in Baculum than I initially thought. Then I used a job to run: truncate volume allpools storage=mystorage That was easy enough for me,

Re: [Bacula-users] How to remove all volumes?

2022-03-21 Thread Chris Wilkinson
I wrote a couple of scripts to help with this problem. Start by deleting all the jobs that you don’t want anymore. This should mark all the associated volumes as ‘purged’. That can be done in bconsole or Baculum. This one deletes any ‘purged’ volume records from the catalog. #!/bin/bash

Re: [Bacula-users] How to remove all volumes?

2022-03-21 Thread Martin Simmons
You can use the "delete volume" command in bconsole to remove a volume from the catalog. After that, you can safely rm it from the filesystem. __Martin > On Sat, 19 Mar 2022 13:08:41 +0100, Justin Case said: > > Dear all, > > again another newbie question: > > I need to use a different

Re: [Bacula-users] How to remove all volumes?

2022-03-19 Thread Justin Case
in bconsole: list volume (or list media) display that the volumes are still marked as Used, not as Purged. So I guess none of the commands I tried (see below) did achieve that the volumes were marked as Purged. What is the right way to do that (without manually iterating through all volume

Re: [Bacula-users] How to remove all volumes?

2022-03-19 Thread Justin Case
I read up the console manual on the purge command and also looked at help purge. The tried: (e) purge action=truncate allpools storage=unraid-tier1-storage when asked for a pool I selected a small one that is the on disk and I get a list of 2 volumes. When entering a media id I get this:

Re: [Bacula-users] How to remove all volumes?

2022-03-19 Thread Justin Case
I think I am not good enough on bconsole yet, I tried different things but I am getting nowhere. Things I tried in bconsole: (a) "purge action=truncate", then selected "2" for jobs it tells me it purged a number of jobs, but no volume got truncated (b) "purge volume action=truncate

Re: [Bacula-users] How to remove all volumes?

2022-03-19 Thread Heitor Faria
Hello Justin, > Or asked differently: Is it possible to declare all volumes as expired without > having to execute a command for each existing volume individually? (something > like “set all volumes to expired”)? You can use the purge command to recycle the desired volumes prematurely. Rgds.

Re: [Bacula-users] How to remove all volumes?

2022-03-19 Thread Justin Case
Or asked differently: Is it possible to declare all volumes as expired without having to execute a command for each existing volume individually? (something like “set all volumes to expired”)? > On 19. Mar 2022, at 20:30, Justin Case wrote: > > Thank you Heitor, > > if I understand those

Re: [Bacula-users] How to remove all volumes?

2022-03-19 Thread Justin Case
Thank you Heitor, if I understand those directives correctly, it will only truncate expired volumes. My volumes are by far not yet expired, still I want to truncate them. Is that possible? Best, JC > On 19. Mar 2022, at 16:30, Heitor Faria wrote: > >> Dear all, > > Hello Justin, > >> I

Re: [Bacula-users] How to remove all volumes?

2022-03-19 Thread Heitor Faria
> Dear all, Hello Justin, > I need to use a different disk drive for Bacula and I would like to start over > in the sense of deleting all volume files in a clean way, i.e. not corrupting > the catalog. The goal is to free up the space occupied by all Bacula volumes. Normally one user does not

[Bacula-users] How to remove all volumes?

2022-03-19 Thread Justin Case
Dear all, again another newbie question: I need to use a different disk drive for Bacula and I would like to start over in the sense of deleting all volume files in a clean way, i.e. not corrupting the catalog. The goal is to free up the space occupied by all Bacula volumes. I know that I