Skip to main content
Version: Preview

Restore data from backup set

KubeBlocks supports restoring clusters from backups with the following instructions.

  1. View backups.

    For existing clusters, execute:

    kbcli cluster list-backups mysql-cluster

    If the cluster has been deleted, execute:

    kbcli dataprotection list-backups
  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 VERSION TERMINATION-POLICY STATUS CREATED-TIME
    myrestore default apecloud-mysql ac-mysql-8.0.30 Delete Running Oct 30,2023 16:26 UTC+0800
  1. Connect to the restored cluster for verification.

    Once the cluster status is Running, run the following command to connect to the cluster for verification:

    kbcli cluster connect myrestore