KubeBlocks
BlogsKubeBlocks Cloud

Getting Started

Introduction
Supported addons
Installation

Concepts and Features

Concepts

Backup and Restore

Introduction

Backup

Configure BackupRepo
Configure BackupPolicy
Scheduled backup
On-demand backup

Restore

Restore from backup set
Point-in-Time Recovery

In Place Update

Introduction
Enable in-place update

Instance Template

Introduction
Apply instance template

Trouble Shooting

FAQs

References

API Reference

Cluster
Operations
Parameters
Dataprotection
Add-On
Terminology
Install Addons
Install kbcli
Snapshot Controller
Create a test Kubernetes cluster
Kubernetes and Operator 101

Upgrade KubeBlocks

Upgrade to v0.8
Upgrade to v0.9.0
Upgrade to v0.9.x

Release Notes

v1.0.0-cn
v1.0.0
v0.9.3
v0.9.2
v0.9.1
v0.9.0

    Restore data from backup set

    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
    

    © 2025 ApeCloud PTE. Ltd.