My backup partition filled with file-based volumes and I want to clear
many of them out, as well as purging related records from the Catalog.
I set my configuration to retain everything.  I made a Python script
to identify the volumes I want to kill by direct
queries to the database, but am unsure what commands I should be
sending to bconsole.  And so I would appreciate some help.

MAIN QUESTIONS:
Does bconsole's `delete` command for a volume delete all job and file*
records associated with it?
Does it matter if some of the jobs also use other, non-deleted, volumes?

OTHER QUESTIONS:
Similarly, would deleting the job delete all associated file records?

Does `purge` have the same effect?

Understanding truncation is less important, since I want to delete the
files--datestamps are part of their names.  But while I'm here ...
`purge` is documented to truncate if `action = truncate` is specified
or the volume has
`Action On Purge` set to truncate.  Or perhaps both must be true for
truncation to occur?

At any rate, does `delete` ever cause truncation, either by explicit
command option or if the volume is set to truncate?

I'm using bacula 9.6.7.  I have consulted its documentation, the
current documentation
https://docs.baculasystems.com/BEUserInterfaces/Console/index.html,
and the internet, but I am not sure how the commands behave.  For
example, the current manual says "The purge command will delete
associated Catalog database records from Jobs and Volume" but doesn't
say exactly what is "associated" for each subcommand.

`purge` and delete presumably do different things, but I'm not sure
what, since both remove entries from the Catalog.
https://dan.langille.org/2013/03/07/deleting-old-bacula-volumes/ says
`prune` respects the retention period.  That would be a difference,
but both the old and new manuals seem quite explicit it does not.  (In
fairness, the web page probably predates even the version I'm
running).

Thanks.
Ross

*"file records" is a bit of a cheat given that individual files are
built out of several different tables.  I'm just assuming it's handled
appropriately, i.e., the individual file record is deleted and the
other records are deleted if there are no other users of them.  I
think the tables were somewhat simplified in more recent versions of
bacula.


_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to