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.

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.

Those who are more knowledgeable should be able to contribute more.

Robert Gerber
402-237-8692
r...@craeon.net

On Tue, Sep 26, 2023, 6:58 AM Felix Brack <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
> 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

Reply via email to