KubeBlocks supports restoring clusters from backups. This documentation takes MySQL as an example. Please refer to MySQL Backup and Restore for more details.
Step 1. View backups.
kubectl get backups
For existing clusters, execute:
kbcli cluster list-backups mycluster
If the cluster has been deleted, execute:
kbcli dataprotection list-backups
Step 2. Restore clusters from a specific backup.
# Restore new cluster
kbcli cluster restore myrestore --backup mybackup
>
Cluster myrestore created
# View the status of the restored cluster
kbcli cluster list myrestore
>
NAME NAMESPACE CLUSTER-DEFINITION TERMINATION-POLICY STATUS CREATED-TIME
myrestore default mysql Delete Running May 26,2025 18:42 UTC+0800