Hello Robert, Many thanks for the fast response!
On 26.09.23 17:36, Rob Gerber wrote: > My guess is that purge volume=xyz will purge any records regarding that > volume. However, purge jobs volume=xyz will purge any jobs related to > that volume, but not the volume itself. > > I have learned from this list that there are retention periods for > records pertaining to files, jobs, and volumes. This implies that bacula > considers database entries regarding files, jobs, and volumes to be > separate from each other. As a result, I am not sure that purging a > volume record would remove all associated file and job records from the > database as well. > > I would say with some confidence that purge jobs volume=xyz will purge > job records related to volume xyz, but might not purge file records > related to that volume, and almost certainly won't purge volume records > related to that volume. > So, to make manually sure nothing prevents volume xyz to remain in 'used' state or turn back to 'used' state after one single job, it would be best to enter _all_ of the following commands: purge volume=xyz purge jobs volume=xyz purge files volume=xyz > Keep in mind that purging one record might result in Bacula removing > other records automatically. Like maybe if a volume has no jobs or files > associated, the volume might be pruned and recycled automatically. I > don't know if Bacula does this, but it's plausible. > > Keep in mind that purge is dangerous and ignores configured retention > periods. Prune is safer. > Thanks for the tip. I use purge intentionally to bypass the configured retention policy. regards Felix > Those who are more knowledgeable should be able to contribute more. > > Robert Gerber > 402-237-8692 > r...@craeon.net <mailto:r...@craeon.net> > > On Tue, Sep 26, 2023, 6:58 AM Felix Brack <f...@ltec.ch > <mailto:f...@ltec.ch>> wrote: > > Hi, > > What is the difference between: > > purge volume="xyz" > > and > > purge jobs volume="xyz" > > Or are they equivalent with respect to the result? > > regards Felix > > > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > <mailto:Bacula-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/bacula-users > <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