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
→ Restore backup.
The cluster creation page will open automatically.
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 ClusterServicerestore
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 the BackupServicelist
method with the project_id parameter.
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 between 1 and 3.