# Exercise 3-2: Restoring a TiDB Cloud Cluster

## Overview
+ In this exercise, you restore TiDB cluster on TiDB Cloud..

## Notes:
+ This exercise is for `TiDB Dedicated` cluster only.

## Duration
+ This exercise should take you approximately 15 minutes to complete.

## Tasks
1. Enter the `Recycle Bin` or `Overview` page.
2. Select a backup of your cluster.
3. Restore your TiDB cluster.


## Solution Steps
(A) 
(a) Restore a deleted cluster
1. In the lower-left of the web console, click your project name (`default project` in our case), then switch to your target project, and click `Project Settings`.
<img src="./diagram/ProjectSettings_aa_002_20231107.png" width="50%" align="top"/>

2. On the `Project Settings` page of your project, click `Recycle Bin` in the left navigation pan.
   
3. Select a backup of your cluster, click `Backups`.
<img src="./diagram/SelectBackup_aa_002_20230119.png" width="50%" align="top"/>

4. On the next screen click `Restore`.
<img src="./diagram/RestoreBackup_aa_002_20230119.png" width="50%" align="top"/>

5. In the `Restore` window, edit your cluster configuration, and then click the `Confirm`.
<img src="./diagram/ConfigureBackup_aa_002_20230119.png" width="50%" align="top"/>

6. Wait for your TiDB Cloud cluster to be restored. (approximately 10 to 30 minutes)


(b) Restore data to a new cluster
1. On the `Clusters` page, click the name of the cluster to enter the `Overview` page of the cluster.
<img src="./diagram/GoDedicatedTierOverview_aa_002_20230111.png" width="50%" align="top"/>

2. Click the `Backup` in the left navigation pane.


3. On the `Backup` page, click `Restore`.

4. In `Restore Mode` section, choose to restore data of any point in time or a selected backup to a new cluster. In `Restore to Region` section, choose a region. In `Restore to New Cluster` section, enter a name and port number for your cluster. Then click `Next`.
<img src="./diagram/ConfigureBackupNewCluster01_aa_002_20230119.png" width="50%" align="top"/>

5. In the `Cluster Size` section, you can increase the node size, node quantity, and node storage for the cluster. Then click `Next`.
<img src="./diagram/ConfigureBackupNewCluster02_aa_002_20230119.png" width="50%" align="top"/>

6. Go through the detailed configuration of your cluster, and then click `Restore`.
<img src="./diagram/ConfigureBackupNewCluster03_aa_002_20230119.png" width="50%" align="top"/>

7. Wait for your TiDB Cloud cluster to be restored. (approximately 10 to 30 minutes)
