Re: [Bacula-users] Retention period calculation

2023-01-31 Thread Justin Case
Thanks for clarifying this, Ana, so if I wanted my tier 1 storage to keep backups for 60 days, and my tier 2 storage to keep backups for 120 days, would it be the best to set the retention periods as follows in the different resources:? • client resources: • file retention: 60 •

Re: [Bacula-users] Retention period calculation

2023-01-31 Thread Ana Emília M . Arruda
Hello Justin, Sorry for the confusion! You are right, we recommend that *VolumeRetention is greater than or equal to JobRetention". So, the Volume will never get pruned before the Job Retention has expired. Hope it is clear now. Best, Ana On Tue, Jan 31, 2023 at 10:43 AM Justin Case wrote: >

Re: [Bacula-users] Retention period calculation

2023-01-31 Thread Justin Case
Hi Ana, see below > On 31. Jan 2023, at 10:16, Ana Emília M. Arruda > wrote: > > Hello Justin, > > The problem is that you expect the Job doesn't get pruned from the Catalog > (Job and File records deleted from the Bacula database) *before* the > JobRetention value expires. > If you have a l

Re: [Bacula-users] Retention period calculation

2023-01-31 Thread Ana Emília M . Arruda
Hello Justin, The problem is that you expect the Job doesn't get pruned from the Catalog (Job and File records deleted from the Bacula database) *before* the JobRetention value expires. If you have a lower VolumeRetention and the volume gets pruned by using "prune volume expired yes", your jobs wi

Re: [Bacula-users] Retention period calculation

2023-01-30 Thread Justin Case
Hello Ana, I though about what you wrote and I am still wondering what would be the problem if a volume gets purged before the contained jobs retentions expire? This would remove the jobs and the corresponding files also from the catalog, ok, but where is the problem? I am Just trying to get a

Re: [Bacula-users] Retention period calculation

2023-01-30 Thread Ana Emília M . Arruda
Hello Antonino, Please note that Job, File and Volume retention values are related to "Catalog stuff". They are the retention of the Jobs and File records in the Catalog. Bacula doesn't touch the data in the volumes unless the volume gets reused or truncated. When you prune jobs, files or volumes,

Re: [Bacula-users] Retention period calculation

2023-01-30 Thread Antonino Balsamo
Thanks Ana and good spot. CATALOGRETENTION is the value I use for all catalog related stuff (job, file and volume), maybe is redundant... Updated calc: RETENTION=2 FILERETENTION=$(($RETENTION*30+40)) VOLUMERETENTION=$(($RETENTION*30+40)) JOBRETENTION=$(($RETENTION*30+40)) CATALOGRETENTION=$((

Re: [Bacula-users] Retention period calculation

2023-01-30 Thread Ana Emília M . Arruda
Hello Antonino, I'm not sure I've understood your question. What does you mean by "CATALOGRETENTION"? There are only three retention values in Bacula: File, Job and Volume. I strongly recommend you to set JobRetention less than or equal to VolumeRetention to avoid the volume to be pruned before t

[Bacula-users] Retention period calculation

2023-01-28 Thread Antonino Balsamo
Hello, I have a shell script generating my bacula configs. Is there any enhancements, error or whatever in calculating the retention period as per below? (it is a no-recycle scenario) #days to keep records in months, min 1 RETENTION=2 FILERETENTION=$(($RETENTION*30+40)) VOLUMERETENTION=$(($