Re: [Bacula-users] Truncate Volumes Before Retention Time is Up

2023-04-19 Thread Justin Case
you could try this:

truncate pool=mypool storage=mystorage

> On 30. Mar 2023, at 18:10, Chris Wilkinson  wrote:
> 
> Do I need to do this for each volume in the pool individually?
> 
> I was hoping to purge and delete all the volumes belonging to the pool as 
> there are quite a large number of volumes.
> 
> I guess I could script the procedure if not.
> 
> Chris.
> 
> On Thu, 30 Mar 2023, 4:59 pm Phil Stracchino,  > wrote:
> On 3/30/23 06:40, Chris Wilkinson wrote:
> > I have an old job that is no longer needed that is consuming some disk 
> > space that I'd like to recover. This storage for this job is on S3 cloud 
> > and the job has full/diff/incr pools associated.
> > 
> > The full backup pool/volumes of this job have a retention time of 365 
> > days so would not normally get pruned out for another year almost. The 
> > incr/diff pool/volumes have a retention time of 7days/31days respectively.
> > 
> > I'd like to truncate these now, delete the job resources and rm the 
> > actual disk volumes, deleting all traces of the defunct job.
> > 
> > What would I need to do to truncate these out now?
> > 
> > I haven't been able to find bconsole commands that would do this. I 
> > tried the truncate command but the volumes status remains unchanged at 
> > full or used or append. Thanks for any suggestions.
> 
> Fundamentally:
> 
> purge jobs volume=...
> delete volume=...
> 
> then rm the file.
> 
> -- 
>Phil Stracchino
>Babylon Communications
>ph...@caerllewys.net 
>p...@co.ordinate.org 
>Landline: +1.603.293.8485
>Mobile:   +1.603.998.6958
> 
> 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/bacula-users 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Truncate Volumes Before Retention Time is Up

2023-03-30 Thread Chris Wilkinson
Do I need to do this for each volume in the pool individually?

I was hoping to purge and delete all the volumes belonging to the pool as
there are quite a large number of volumes.

I guess I could script the procedure if not.

Chris.

On Thu, 30 Mar 2023, 4:59 pm Phil Stracchino,  wrote:

> On 3/30/23 06:40, Chris Wilkinson wrote:
> > I have an old job that is no longer needed that is consuming some disk
> > space that I'd like to recover. This storage for this job is on S3 cloud
> > and the job has full/diff/incr pools associated.
> >
> > The full backup pool/volumes of this job have a retention time of 365
> > days so would not normally get pruned out for another year almost. The
> > incr/diff pool/volumes have a retention time of 7days/31days
> respectively.
> >
> > I'd like to truncate these now, delete the job resources and rm the
> > actual disk volumes, deleting all traces of the defunct job.
> >
> > What would I need to do to truncate these out now?
> >
> > I haven't been able to find bconsole commands that would do this. I
> > tried the truncate command but the volumes status remains unchanged at
> > full or used or append. Thanks for any suggestions.
>
> Fundamentally:
>
> purge jobs volume=...
> delete volume=...
>
> then rm the file.
>
> --
>Phil Stracchino
>Babylon Communications
>ph...@caerllewys.net
>p...@co.ordinate.org
>Landline: +1.603.293.8485
>Mobile:   +1.603.998.6958
>
>
>
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Truncate Volumes Before Retention Time is Up

2023-03-30 Thread Phil Stracchino

On 3/30/23 06:40, Chris Wilkinson wrote:
I have an old job that is no longer needed that is consuming some disk 
space that I'd like to recover. This storage for this job is on S3 cloud 
and the job has full/diff/incr pools associated.


The full backup pool/volumes of this job have a retention time of 365 
days so would not normally get pruned out for another year almost. The 
incr/diff pool/volumes have a retention time of 7days/31days respectively.


I'd like to truncate these now, delete the job resources and rm the 
actual disk volumes, deleting all traces of the defunct job.


What would I need to do to truncate these out now?

I haven't been able to find bconsole commands that would do this. I 
tried the truncate command but the volumes status remains unchanged at 
full or used or append. Thanks for any suggestions.


Fundamentally:

purge jobs volume=...
delete volume=...

then rm the file.

--
  Phil Stracchino
  Babylon Communications
  ph...@caerllewys.net
  p...@co.ordinate.org
  Landline: +1.603.293.8485
  Mobile:   +1.603.998.6958



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Truncate Volumes Before Retention Time is Up

2023-03-30 Thread Chris Wilkinson
I have an old job that is no longer needed that is consuming some disk
space that I'd like to recover. This storage for this job is on S3 cloud
and the job has full/diff/incr pools associated.

The full backup pool/volumes of this job have a retention time of 365 days
so would not normally get pruned out for another year almost. The incr/diff
pool/volumes have a retention time of 7days/31days respectively.

I'd like to truncate these now, delete the job resources and rm the actual
disk volumes, deleting all traces of the defunct job.

What would I need to do to truncate these out now?

I haven't been able to find bconsole commands that would do this. I tried
the truncate command but the volumes status remains unchanged at full or
used or append. Thanks for any suggestions.

Chris Wilkinson
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users