Manually trigger an OpenStack database backup
You can trigger a backup of the OpenStack database outside of the regular
schedule by creating a one-time Kubernetes job from the mariadb-phy-backup
CronJob.
To manually trigger an OpenStack database backup:
Create a one-time Kubernetes job from the
mariadb-phy-backupCronJob in theopenstacknamespace:kubectl create job --from=cronjob/mariadb-phy-backup <job-name> -n openstack
Replace
<job-name>with a name that is unique within theopenstacknamespace. For better visibility and tracking, include a reason and timestamp, for example:openstack-db-backup-pre-upgrade-20260615120000.Wait until the job succeeds:
kubectl -n openstack get jobs <job-name> -o jsonpath='{.status}'
Note
Unlike scheduled CronJob pods, pods from manually created jobs are retained until the job is deleted. To delete the job after it completes, run:
kubectl delete job <job-name> -n openstack