Logical MySQL Backup

If it hasn't been done already, the bitnami Helm repository needs to be added to your local configuration:

# Add bitnami helm repo
$ helm repo add bitnami https://charts.bitnami.com/bitnami

Install the MySQL chart from the bitnami Helm repository:

$ kubectl create namespace mysql
$ helm install --namespace mysql mysql-release bitnami/mysql

The following command can be used create the MySQL Blueprint in the Veeam Kasten namespace.

$ kubectl --namespace kasten-io apply -f \
    https://raw.githubusercontent.com/kanisterio/kanister/0.112.0/examples/mysql/blueprint-v2/mysql-blueprint.yaml

Note

The MySQL backup example provided above serves as a blueprint template for logical backups. Please note that these examples may need to be modified for specific production environments and setups. As a result, it is highly recommended to carefully review and modify the blueprints as needed before deploying them for production use.

Alternatively, use the Blueprints page on Veeam Kasten Dashboard to create the Blueprint resource.

Once the Blueprint is created, add an annotation on the MySQL Deployment to instruct Veeam Kasten to use the Blueprint when performing operations on this MySQL instance.

$ kubectl --namespace mysql annotate statefulset/mysql-release \
    kanister.kasten.io/blueprint=mysql-blueprint

Finally, use Veeam Kasten to backup and restore the application.