Newer documentation is now live.You are currently reading an older version.

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:

  1. Create a one-time Kubernetes job from the mariadb-phy-backup CronJob in the openstack namespace:

    kubectl create job --from=cronjob/mariadb-phy-backup <job-name> -n openstack
    

    Replace <job-name> with a name that is unique within the openstack namespace. For better visibility and tracking, include a reason and timestamp, for example: openstack-db-backup-pre-upgrade-20260615120000.

  2. 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