Interactive Delete
EnterpriseBacula Enterprise Only
This solution is only available for Bacula Enterprise. For subscription inquiries, please reach out to sales@baculasystems.com.
It is possible to delete backup(s), snapshot(s) or volume(s) by running the /opt/bacula/bin/openstack-vm-execute-interactive-delete procedure with relevant parameters
Note
The delete operation is sent through Openstack API, and it has the force flag activated by default.
Parameters
- -b <backup-ID>: For interactive backup deletion if no ID is specified the procedure will go through all backups asking for deletion.
- -c <admin-openrc>Path to modified admin-openrc.sh DEFAULT=/opt/bacula/admin-openrc.sh.
- -s <snapshot-ID>For interactive snapshot deletion if no ID is specified the procedure will go through all snapshots asking for deletion.
- -t <tools>Path to openstack-vm-scripts DEFAULT=/opt/bacula/bin/
- -p <project-id>- If set restore will target VM in this project only.
- -v <volume-ID>For interactive volume deletion if no ID is specified the procedure will go through all volumes asking for deletion.
- -hDisplay help
Example
The options of this procedure are analog to other operations, but used for backup/snapshot/volume deletion instead.
Interactive delete of backups would be /opt/bacula/bin/openstack-vm-execute-interactive-delete -b
With an output looking like this:
root@openstack-bck:~# /opt/bacula/bin/openstack-vm-execute-interactive-delete -b
INTERACTIVE BACKUP DELETE START
Would you like to delete BACKUP
ID=<backup1_ID>
NAME=<backup1_name>
DESCRIPTION=Backup done by Bacula Enterprise INSTANCE=<instance_name> DATE=Tue Mar 19 16:34:03 UTC 2024
Start deletion [y]es / [N]o ?y
Delete command sent
Would you like to delete BACKUP
ID=<backup2_ID>
NAME=<backup2_name>
DESCRIPTION=Backup done by Bacula Enterprise INSTANCE=<instance_name> DATE=Tue Mar 19 16:34:03 UTC 2024
Start deletion [y]es / [N]o ?y
Delete command sent
...
INTERACTIVE BACKUP DELETE FINISHED
Go back to: Operations.