Manage ClickHouse® backups
Create a manual backup
Managed Service for ClickHouse® automatically creates backups every day at approximately 1 AM in the cluster region timezone.
-
Go to the Clusters
-
Select the cluster you want to create a backup for.
-
Switch to the Backups tab.
-
Click Create backup.
-
Enter a name for your backup and click Submit.
A separate backup for each shard in the cluster will be created.
Restore shards from backups
-
Go to the Clusters
-
Select the cluster where you want to restore shards.
-
Switch to the Backups tab.
-
Select a shard you want to restore a backup from.
-
Click
-
Follow the steps from the Create a cluster page to add a new cluster for your backup copy.
Warning
You can't use an existing cluster to restore data from a backup. Create a new cluster for this purpose and specify the desired Service, Provider, Region, and Resources settings.
To restore a ClickHouse® cluster from a backup,
use the ClusterService
restore
method with the following parameters:
-
project_id
: ID of your project. You can get this value on your project's information page. -
backup_id
: ID of the backup from which you want to restore the cluster. To get this id, use theBackupService
list method with theproject_id
parameter. -
region_id
: Region ID. For a list of available regions and their region codes, refer to Areas and regions for Managed Service for ClickHouse®. -
name
: Cluster name. It must be unique within the project. -
resources
: Resource configuration from the doublecloud.clickhouse.v1.ClusterResources model:-
resource_preset_id
: Name of the hardware resource preset for your cluster. For a full list of presets available for ClickHouse® clusters, refer to DoubleCloud hardware instances. -
disk_size
: Storage size for your cluster in bytes. -
replica_count
: Number of replicas between1
and3
. -
shard_count
: Number of shards.
-