# Backup and Restore

&#x20;The Backup & Restore feature is a function of the M-FKE product used in OpenStack infrastructure, designed to create snapshots of PVCs and configurations (resource configurations within Kubernetes).

&#x20;M-FKE has released Backup & Restore functionality version 1.0.0. This version includes the following utilities:

1\.        Backup Plan

a.        Display Backup Plan List

b.        Create a new backup plan

c.        Set multiple timings within a single backup plan to enable the system to automatically create PVC snapshots. Can be applied to one or more PVCs simultaneously.

d.        Set retention period in minutes/hours/days.

e.        Edit Backup Plan

f.         Enable/disable backup plans

g.        Deleting a Backup Plan

2\.        PVC Snapshots

a.        Display PVC Snapshot List

b.        Synchronize Snapshot List from Cluster to FPT Cloud Portal

c.        Create New PVC Snapshot

d.        Delete PVC Snapshot

e.        Restore PVC Snapshot

3\.        Restore PVC

a.        Display list of restored PVCs

b.        Update status

&#x20;<mark style="color:red;">Note: This feature applies to the Cinder driver (pre-created by FPT Cloud).</mark>

**1. Backup Plan**

1\.        Create a new backup plan

* Step 1: Access Portal > Containers > Kubernetes > Detailed Cluster > Backup tab

<figure><img src="/files/AQdnW4ALnKQ49Xay0zgL" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/gU2e5fUNd6J1DiNKTzzn" alt=""><figcaption></figcaption></figure>

* Step 2: Click "New Plan" to create a new backup plan.

<figure><img src="/files/UlAKZyF0Y421ZTQKTYma" alt=""><figcaption></figcaption></figure>

* Step 3: Enter the backup plan information.
  * Basic Information:
    * Plan Name: Name of the backup plan
    * Retention Period: The duration for which snapshots are retained. After this period, snapshots are permanently deleted.
  * Schedule Scope:
    * PVC Backup List: List of PVCs within the cluster
  * Schedule Information: Enter specific month/day/year to configure the backup schedule
* Step 4: Click "Save" to save the backup plan. The newly created backup plan will be added to the backup plan list

<figure><img src="/files/uFLDDTFeOL49fbuccOrF" alt=""><figcaption></figcaption></figure>

![](/files/PtBLGiIyxF7JXmY5JPwk)

![](/files/MxStXF3pL5TapEn189tF)

![](/files/qcsOuhdaUeTbe9N6C6Sw)\
&#x20;<mark style="color:red;">Note: Snapshots created according to the backup plan schedule will appear in the snapshot list with Type = "Scheduled".</mark>

&#x20;**2. PVC Snapshots**

&#x20;This subtab displays created snapshots. This includes those created manually by you (*Type = **"Manual*****"**) or those created by a backup plan (*Type = **"Scheduled*****"**).

&#x20;\- View the list of created snapshots

<figure><img src="/files/Qcufx2SBV4O6u4N38dPe" alt=""><figcaption></figcaption></figure>

&#x20;\- Users can select "Create Snapshot" to create a snapshot directly.

![](/files/r2ZiGZjNHVSqSKUoZ3Rb)\
&#x20;\- Users can select Delete to remove a snapshot, Refresh to update the snapshot to its latest state, or Restore to restore the PVC to the K8s cluster.

<figure><img src="/files/SGspT4MPh6Gc6c1rPVXf" alt=""><figcaption></figcaption></figure>

\
&#x20;\- Simultaneously, the Sync button can be used to directly synchronize the status of snapshots and PVCs from the K8s cluster to the FPT Cloud Portal.

&#x20;**3. PVC Restored**

&#x20;When a user selects Restore Snapshot from the "PVC Snapshot" subtab, the restored PVC appears in the "PVC Restored" subtab.

<figure><img src="/files/E76iwo31wahj97hDoeUo" alt=""><figcaption></figcaption></figure>

<p align="center"><em>Restore PVC in the "PVC Snapshot" subtab</em></p>

<figure><img src="/files/GPhfw1oTag87MJzUAomB" alt=""><figcaption></figcaption></figure>

<p align="center"> <em>A list of restored PVCs is displayed</em></p>

<p align="center"> <em>PVCs not assigned to pods will be in Pending status.</em></p>

&#x20;Users can then access their K8s cluster and configure the deployment of pods mapped to the restored PVC to update the PVC status.

<figure><img src="/files/d09WUDHlRsotdi4FDQHk" alt=""><figcaption></figcaption></figure>

<p align="center"> <em>Click [Reload] to update the PVC status, or click [Sync] to update all.</em></p>

&#x20;**4. Notes**

&#x20;\- The number of snapshots within each VPC is limited to a maximum of 10. For further upgrades, please contact FPT Cloud Support.

&#x20;\- Users must create an appropriate plan and avoid reaching infrastructure limits by creating numerous snapshots without deleting them, which would prevent further snapshot creation.

&#x20;\- If a snapshot status shows *as "Failed*,*"* access the K8s cluster and run the following command to investigate the cause beforehand:

&#x20;\`\`\`

&#x20;kubectl describe volumesnapshots.snapshot.storage.k8s.io -n \<namespace> \<snapshot\_name>

&#x20;\`\`\`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ai-docs.fptcloud.com/fpt-gpu-cloud/gpu-cluster/managed-k8s-with-gpu-virtual-machine/tutorial/backup-and-restore.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
