Use Tanzu Mission Control to create backups of specified data resources in your cluster.

Using Tanzu Mission Control, you can back up an entire cluster or a subset of the data resources it contains. For more information, see Data Protection in VMware Tanzu Mission Control Concepts.

Prerequisites

To perform a backup, you must first create a target location, as described in Create a Target Location for Data Protection and associate it with the cluster or cluster group that contains your cluster.

Prepare the cluster, as described in Enable Data Protection for a Cluster.

Make sure you have the appropriate permissions.
  • To perform a backup, you must be associated with the cluster.admin role in the cluster.

Procedure

  1. Log in to the Tanzu Mission Control console, and then navigate to the cluster detail page for the cluster that you want to back up.
  2. Click the Data Protection tab.
  3. On the Data Protection tab, under Backups, click the Create Backup button.
    You can also initiate a backup by clicking the Create Backup link in the Data Protection box on the Overview tab of the cluster detail page.
  4. Specify the scope of the backup, and then click Next.
    • the entire cluster
    • selected namespaces
    • resources identified by a label selector
  5. You can optionally choose to include or exclude specific resources and exclude namespaces.
    1. Click Advanced options.
    2. Excluded namespaces: Specify a list of namespaces that will not be included in the backup. As a consequence, any namespaces in the cluster not in this list will be backed up. This option is not available for selected namespaces backups.
    3. Excluded resources: Specify a list of resource types, formatted as resource[.group], that will not be included in the backup, for example: secret, mutatingwebhookconfiguration.admissionregistration.k8s.io, and so on.
    4. Include cluster-scoped resources: If set, cluster-scoped (i.e., non-namespaced) resources, such as CustomResourceDefinition and ClusterRoles, will be included in the backup. By default, cluster-scoped resources are backed up if you opt to backup the entire cluster or to backup resources identified by a label selector.
  6. Choose a target location, and then click Next.
    When All locations is selected, the dropdown list shows all target locations that have been defined for your organization. Select Currently available locations to show only the target locations that are immediately accessible from Tanzu Mission Control, and not those that might be temporarily unaccessible.
  7. Specify the schedule for the backup, and then click Next.
    You can choose Now to queue the backup immediately upon completion of this workflow, or choose one of the recurring schedule formats and provide a targeted start time. You can also choose Custom, and provide a cron expression to specify the schedule for your backup.
  8. Specify how long to retain the backup, and then click Next.
    You can specify any number of days, up to 365.
  9. Provide a name for the backup.
    The name that you provide can consist of lowercase letters, numbers, and hyphens.
  10. Click Backup.

Results

When you click Backup, Tanzu Mission Control schedules the process of backing up the resources you have specified, and then returns you to the cluster detail page, which shows you the status of the backup operation.