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, you are "deleting the jobs/files records from the Catalog database".
If you prune a volume, it means you delete the jobs and files records associated with this volume from the Catalog. Thus, "CATALOGRETENTION" is not used in Bacula. Hope this helps! Best, Ana On Mon, Jan 30, 2023 at 7:13 PM Antonino Balsamo < a.bals...@officinapixel.com> wrote: > 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=2FILERETENTION=$(($RETENTION*30+40)) > VOLUMERETENTION=$(($RETENTION*30+40)) > JOBRETENTION=$(($RETENTION*30+40)) > CATALOGRETENTION=$(($RETENTION*30+90)) > > Cheers > Ant > > Il 30/01/2023 19:02, Ana Emília M. Arruda ha scritto: > > 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 the Job Retention > has expired. > > Best, > Ana > > On Sat, Jan 28, 2023 at 11:26 AM Antonino Balsamo < > a.bals...@officinapixel.com> wrote: > >> 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 >> 1RETENTION=2FILERETENTION=$(($RETENTION*30+40)) >> VOLUMERETENTION=$(($RETENTION*30+40)) >> JOBRETENTION=$(($RETENTION*30+90)) >> CATALOGRETENTION=$(($RETENTION*30+90)) >> >> >> thanks >> >> Antonino >> >> >> _______________________________________________ >> 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