# Create Backup Plans

## Create Backup Plans

1. Log in to the T4K **Management Console**.
2. From the left panel menu, click **Backup & Recovery**.
3. Select one of your clusters from the left panel menu, which displays a dropdown menu for you to select from.\
   ![](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/zBEGU0ku2JHRasWBhbMt/backupplans-create-1.png)
4. From this dropdown menu, select **Backupplans**.
5. From the page displayed, select **Create New**.
6. Choose from the three types of backup plan that may be created:
   * **Application**
   * **Single-namespace**
   * **Multi-namespace**
7. Follow the separate instruction sets for the backup plan types below.

## Backup Plan - Application

1. The **CREATE NEW BACKUPPLAN** window \*\*\*\* displayed is arranged into two tabs. First to display is **Step 1: Configuration** tab.\
   ![](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/xRKCaPxVBgPUsBswJcas/backup-singlens-3.png)
2. Provide parameters like:
   * **Namespace** - Choose from the dropdown menu
   * **Name** - Type a meaningful name for your backup plan
   * **Target** - mandatory field
   * **Encryption Secret** - This is an optional field. Choose from the dropdown menu.
   * **Hook Configuration** - Optionally, add any applicable hooks here by firstly clicking **Add Hook**. In the window displayed, populate the **Hook**, **Pod Selector**, and **Container Regex** fields. Then click **Add**.\
     ![](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/ZhMHjt0khCB63f43nw9o/backup-singlens-4.png)
   * **Scheduling Policy** for **Full Backup** and **Incremental Backup -** optional field
   * **Retention Policy** - optional field
3. Click **Next**.
4. The **Step 2: Component Details** tab is now displayed. There are three optional sub-tabs to choose from:
   * Operator \*\*\*\* - Optionally click **Add Operator**. Then type your operator name or ID into the **Operator** text field.\
     ![](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/ICqHXevAu6KZr7K51jHx/backup-singlens-5.png)
   * Helm Release \*\*\*\* - Optionally click **Add Helm Release**. Then **Select a Helm release** from the dropdown.\
     ![](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/2MNQxngBjF5EM9kxtXlE/backup-singlens-6.png)
   * Custom - Optionally, you can add resources to the **Included Resources** and/or the **Excluded Resources** list by clicking **Add Resources**.\
     ![](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/xqfC7Qnzuo1WeCo84v9k/backup-singlens-7.png)
5. Once all components are added, click **Create**.

## Backup Plan - Single-namespace

1. The **CREATE NEW BACKUPPLAN** window \*\*\*\* displayed is arranged into two tabs. First to display is **Step 1: Configuration** tab.\
   ![](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/xRKCaPxVBgPUsBswJcas/backup-singlens-3.png)
2. Provide parameters like:
   * **Namespace** - Choose from the dropdown menu
   * **Name** - Type a meaningful name for your backup plan
   * **Target** - mandatory field
   * **Encryption Secret** - This is an optional field. Choose from the dropdown menu.
   * **Hook Configuration** - Optionally, add any applicable hooks here by firstly clicking **Add Hook**. In the window displayed, populate the **Hook**, **Pod Selector**, and **Container Regex** fields. Then click **Add**.\
     ![](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/ZhMHjt0khCB63f43nw9o/backup-singlens-4.png)
   * **Scheduling Policy** for **Full Backup** and **Incremental Backup -** optional field
   * **Retention Policy** - optional field
3. Click **Next**.
4. The **Step 2: Resource Selector** tab is now displayed.\
   ![](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/EOA9yDDbenFIrCBdm5ak/backup-singlens-2.png)
5. Here you can add resources to the **Included Resources** and/or the **Excluded Resources** list by clicking **Add Resources**. This is an optional step. In this example, none are added.
6. Click **Create**.

## Backup Plan - Multi-namepspace

1. The **CREATE MULTI-NAMESPACE BACKUPPLAN** window \*\*\*\* displayed is arranged into two main tabs followed by two sub-tabs. First to display is **Step 1: Global Configuration** tab and the **Basic** sub-tab.\
   ![](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/eF6wVoIfBxOrFUV73jFM/backup-recovery-namespaces-2.png)\
   Provide parameters like:
   * **Target** - mandatory field
   * **Encryption Secret** - optional field
   * **Scheduling Policy** for **Full Backup** and **Incremental Backup -** optional field
   * **Retention Policy** - optional field
2. Click **Next**.
3. Optional - **Resource Selection** is the second sub-tab of the **Step 1: Global Configuration** tab to display. Here you can add resources to the **Included Resources** and/or the **Excluded Resources** list by clicking **Add Resources**. In this example, none are added.\
   ![](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/UgxSIILQx4z9PXBEUDPW/backup-recovery-namespaces-3.png)
4. Click **Next**.
5. Optional - **By Namespace** is the first sub-tab of the **Step 2: Namespace Configuration** tab to display. On this sub-tab, selected namespace are listed. To add namespace-specific configuration like **hooks**, **exclude resources** and **include resources**, click **Add Configuration** beside the relevant namespace. There is also an option to **Add Namespace** if you wish to do that. This step is optional, so if namespace specific-configurations are not specified, global level configurations will be applied.\
   ![](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/3RVXkedPDSdhDBs48StF/backup-recovery-namespaces-4.png)
6. Optional - **By Namespace Selector** is the second sub-tab of the **Step 2: Namespace Configuration** tab to display. On this sub-tab, you can select **Add Namespace Selector**. This is \*\*\*\* a combination of matching labels and matching expressions and T4K will select the namespaces that match the selected label sets dynamically. This step is optional, so if namespace specific-configurations are not specified, global level configurations will be applied.\
   ![](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/mrhTnaLk81CN0yCKdgid/backup-recovery-namespaces-5.png)
7. Click **Create**.
8. You are now prompted to name your backup plan. Type a meaningful name into the free text field.\
   ![](https://content.gitbook.com/content/TrewSrS6CmLdahLrZUjj/blobs/CVdwqtEsvhNp1cLo9Kb9/backup-recovery-namespaces-6.png)
9. Select **Done**.
