Deletion of Bacula Client’s Finished Backups

If for any reason it is necessary to completely delete entries from Bacula backups, the following bconsole commands can be executed (version reference 12.x Enterprise / 11.x Community):

Bacula Client’s Backups

purge jobs client=<client_name>
delete client=<client_name>

VMs and Containers Plugin’s Backups

delete jobid=x,y,z

If you have a lot of Jobs to delete, it may be more practical to use the script: <jdelete>

Just unzip and run. Example:

cd /opt/bacula/scripts/

You will be invited to enter the Job’s nine, validate all jobs selected by the query and proceed with the deletion, or not:

[root@enterprisebacula scripts]# /opt/bacula/scripts/
Job Name for Deletion: MySQLplugin
Do you wish to remove these Jobs [yn]y

PS: it is necessary that the settings of the deleted objects are first deleted from the Director’s Configuration, if any.

The commands delete only metadata from the Bacula Catalog. The volume and storage data elimination will be done according to its type, characteristics and defined retentions. For example, a tape can be recycled if all of the Jobs it contains have their backups deleted by this procedure.

Disponível em: pt-brPortuguês (Portuguese (Brazil))enEnglishesEspañol (Spanish)

Leave a Reply