# Restoration

## 1. Preparation before Restore Creation

* To create a restore, there must be <mark style="color:red;">a completed restore point</mark>. Refer to [this guide](https://cocktailcloud.gitbook.io/cocktail-cloud-online-en/backup-restore/backup) for more information.

## 2. Selecting a Restore Point

1. After selecting \[Backup/Restore] - \[Restore Points] section, click on the name of the restore point you want to restore.

   <figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FcrDmOinp0mRTznS5wYFl%2Fimage.png?alt=media&#x26;token=b1294c99-3086-4d0a-b003-91c4f1a3890b" alt=""><figcaption></figcaption></figure>
2. Click the \[Restore] button.

   <figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FVnEdDutaKxE8MYGhLO1W%2Fimage.png?alt=media&#x26;token=be235713-517a-4de4-9ec2-6f46edb03fa5" alt=""><figcaption><p>[Screen] Restore Point - Restore</p></figcaption></figure>

## 3. Restore Information Entry

1. Enter the necessary information for the restoration.

   <figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2Fr5hYdrABpoJjeAkHsArR%2Fimage.png?alt=media&#x26;token=54f11c1b-bf1a-4dcb-82c0-025ddab6f3b0" alt=""><figcaption><p>[Screen] Restore Creation</p></figcaption></figure>

### 3.1 Restore Scope

{% hint style="info" %}
The restoration scope includes selecting the entire cluster or specific namespaces, label selectors, and choosing the resources to restore.
{% endhint %}

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FiUz1eRMNZgqOTf8zcqXa%2Fimage.png?alt=media&#x26;token=705dfe67-ca8b-487b-8d2e-ab841eb11376" alt=""><figcaption><p>[Screen] Restore Creation - Restore Scope</p></figcaption></figure>

#### 1. Restore Scope

* The restore scope can be selected as \[Entire Cluster] to restore the entire cluster or choosing \[Selecting Namespace] to restore specific namespaces.
* "If you choose \[Selecting Namespace], additional items will be displayed as follows.

  <figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FiPqKXdxf0Oyq5DYMQI6U%2Fimage.png?alt=media&#x26;token=0cd9c55b-3222-4363-a770-1ea2a9760208" alt=""><figcaption><p>[Screen] Restore Creation - Namespace</p></figcaption></figure>
* <img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2Fgit-blob-a7f14d3f5d30d5b937ac6828f7d3d7bd2a21c2a3%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202024-01-10%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%201.28.15.png?alt=media" alt="" data-size="line">Click the icon to select the namespace.
* If you want to restore to a new or different namespace, enter the namespace name in \[Deploy Namespace Name]
* Click the \[Apply] button.

  <figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FspNJNrs1If2tUqN1dPjL%2Fimage.png?alt=media&#x26;token=0134abe9-b4e6-4cba-851d-4c4ef7357fbb" alt=""><figcaption><p>[Screen] Restore Creation - Namespace Popup</p></figcaption></figure>
* Verify the selected namespace.

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FVemn3PArbiaJJomnYdnq%2Fimage.png?alt=media&#x26;token=8eb03233-63e3-4525-b548-7aa1d70fcdd3" alt=""><figcaption><p>[Screen] Restore Creation - Namespace Confirmation</p></figcaption></figure>

#### 2. Label Selector

* Using a label selector during the restore allows you to perform restoration only on resources that match specific labels or label conditions.
* <img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2Fgit-blob-950fe777517390294b44320624cbbc7b0bdac111%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202024-01-10%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%201.36.49.png?alt=media" alt="" data-size="line">Click the icon to enter the name and value.
* The restoration target is limited to resources that <mark style="color:red;">satisfy all specified label conditions</mark>.

  <br>

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FoGeFr8WYYclH3cQANnHi%2Fimage.png?alt=media&#x26;token=e8ecfc07-c3eb-4015-be54-5ed74dcc72a5" alt="" width="375"><figcaption><p>[Screen] Restore Creation - Label Selector</p></figcaption></figure>

#### 3. Resources

* In the context you provided, selecting \[Entire Resources] would designate all resources within the cluster as the restoration target, while choosing \[Selecting Resources] allows for the selective restoration of specific resources.
* If you choose \[Selecting Resources], additional options will be displayed below as follows

#### 4. Change Storage Class

* When changing storage class is an option that allows you to switch to the storage class used by the destination cluster when restoring data to a new cluster
* <img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2Fgit-blob-950fe777517390294b44320624cbbc7b0bdac111%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202024-01-10%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%201.36.49.png?alt=media" alt="" data-size="line">Clicking the icon to select Old Storage Class and New Storage Class
* Click the \[Apply] button

  <figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FR7ZgX0yGznWDnTSlMGvj%2Fimage.png?alt=media&#x26;token=8130cde3-09a7-47b7-a1b9-4701ec2fb19f" alt=""><figcaption></figcaption></figure>

### 3.2 Restore Target

{% hint style="info" %}
Restoration target configuration involves specifying the cluster to be restored and assigning a restoration name.
{% endhint %}

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2Fw9jHdCcji9ZAtRQt6T4D%2Fimage.png?alt=media&#x26;token=13a89a65-707c-4916-9aad-995c81defe08" alt=""><figcaption><p>[Screen] Restore Creation - Restore Target Configuration</p></figcaption></figure>

<table><thead><tr><th width="198">Item (* is required)</th><th>Content</th></tr></thead><tbody><tr><td>Restore target cluster*</td><td>Cluster to restore (to be relocated)</td></tr><tr><td>Restore Name*</td><td>Restore Name</td></tr></tbody></table>

## 4. Save Restoration Information

1. Save Restore Information

   <figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FEHngxwRxz0OYVwZnpUIZ%2Fimage.png?alt=media&#x26;token=54a51c34-47c7-4657-8b3e-3a3a28bc12d7" alt=""><figcaption><p>[Screen] Restore Creation - Save</p></figcaption></figure>
2. Review the following message and click the \[OK] button.

   <figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FH6lhkmfYZs2fOnL46dzE%2Fimage.png?alt=media&#x26;token=7b5eade7-affc-4979-b964-2c22408360ec" alt=""><figcaption><p>[Screen] Restore Creation - Save Popup</p></figcaption></figure>

## 5. Restore Confirmation

1. Created restorations can be viewed in the restoration history list.

   <figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FUN14tG5YBLcjyT72mLZz%2Fimage.png?alt=media&#x26;token=9d32bbbb-d0b2-470c-8404-0b1c9b06aed2" alt=""><figcaption><p>[Screen] Restore History List</p></figcaption></figure>
2. To review detailed information about a specific restoration, click on its restoration name.

   <figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2F3pItPzATHBCMFtQlsZJu%2Fimage.png?alt=media&#x26;token=db12f968-2d1a-4d26-9080-64e0a431b7ce" alt=""><figcaption><p>[Screen] Restore History List - Name</p></figcaption></figure>

   <figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2Flbw1uiLrKas0I4EIbH9g%2Fimage.png?alt=media&#x26;token=dfe82efb-c4eb-4f6a-b39e-852dcb51ea5d" alt=""><figcaption><p>[Screen] Restore Details</p></figcaption></figure>

## 2. Restore Deletion

1. Navigate to the \[Backup/Restore] - \[Restore list] section, check the item you wish to delete from the list

   <figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FqxZsZJOnQAnFSsSRehpQ%2Fimage.png?alt=media&#x26;token=eaf4a97e-da13-461c-a563-33a3c4e86574" alt=""><figcaption><p>[Screen] Restore History - Check Box</p></figcaption></figure>
2. Click the \[Delete] button.

   <figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2FvFLmMzgpGeYc7FRQ5sMR%2Fimage.png?alt=media&#x26;token=5c5868a9-52aa-47d8-9d62-e4136a4b56a2" alt=""><figcaption><p>[Screen] Restore History - Delete</p></figcaption></figure>
3. Click the \[OK] button.

   <figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2F5emKJ8ienIrWnHM7jYhI%2Fimage.png?alt=media&#x26;token=b9574a92-8969-40b8-b6ee-8e45164088e9" alt=""><figcaption><p>[Screen] Restore History - Delete Popup</p></figcaption></figure>

{% hint style="danger" %}

* For backups within the same cluster, be cautious when deleting backed-up resources at restoration points, as <mark style="color:red;">the restore list will also be deleted</mark>
* For backups to different clusters, deleting backed-up resources at restoration points does not delete the restore list. However, you won't be able to retrieve backup information from the restore list.
  {% endhint %}

<figure><img src="https://4196990571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL5As9l8R3RbLkQd6XsfL%2Fuploads%2F9YpFfD08SMHNQTv9mKXL%2Fimage.png?alt=media&#x26;token=1d9cda45-512e-453f-b4bd-ca6f6f06338d" alt=""><figcaption><p>[Screen] Restore Details - Unable to view restoration information</p></figcaption></figure>
