Introduction
TKE Backup Center provides integrated solutions for the backup, restoration and migration of applications. This document describes how to create a backup task and a scheduled backup policy.
Prerequisite
Note:
If you have installed a community-based open source backup tool, such as Velero, please uninstall it first.
Install the tke-backup add-on in the target cluster. You can go to the Add-on management module of the cluster to install the add-on. For operation details, see Add-on Installation. Directions
Creating a backup
1. Log in to the TKE console and select Backup Center > Backup Management in the left sidebar. 2. Click Create backup on the page that appears.
3. Enter backup information.
Field description:
Backup name: Enter the backup task name that meets the requirements prompted.
Backup type:
Instant backup: Create a backup task and implement the backup operation instantly.
Scheduled backup: Create the resource object BackupSchedule, which will create backup tasks in a scheduled way based on the rules you set.
Backup repository: Select a backup repository you created.
Namespace: Select a specific namespace or all namespaces, in which all applications are backed up.
Backup validity: Retaining period of the backup data, after which the data is deleted and cannot be restored.
Advanced settings:
Exclude namespace: You can specify the namespace that will not be backed up when you select "All" for Namespace.
Backup resource: All Kubernetes resources in the corresponding namespace are backed up when you select "All". Otherwise, back up the specific Kubernetes resource.
Exclude resource: You can specify the resource that will not be backed up when you select "All" for Backup resource.
Specify label: Only the applications with the label in the target namespace are backed up.
4. Click OK.
Note:
The following types of Kubernetes resources are backed up: Deployment, StatefulSet, DaemonSet, Job, CronJob, ConfigMap and Secret.
Viewing backup
You can view the backup on Instant backup and Scheduled backup tabs on the Backup management page.
Viewing backup status
|
Initializing | The backup task is being created. |
Executing | The backup task is being implemented. |
Acceleration | The backup operation is completed. |
Partially failed | Some resource objects are backed up successfully, and others are failed. You can check "Status" in YAML to learn the number of successfully backed up resource objects and the failure reasons. |
Failed. | The backup is failed. You can learn the failure reasons in the console or by checking "Status" in YAML. |
Viewing backup content
You can view the backup data of the storage in the COS console. Each backup task is named in the format of "Backup name-Cluster name-YYYYMMDDHHmmss".
Was this page helpful?