• Cloud-Native Container ProductsCloud-Native Container Products
    • KubeSphere Enterprisehot
    • KubeSphere Virtualizationhot
    • KubeSphere Enterprise HCI
  • Cloud-Native ServiceCloud-Native Service
    • KubeSphere Backuphot
    • KubeSphere Litenew
    • KubeSphere Inspectornew
  • Public Cloud Container ServicePublic Cloud Container Service
    • KubeSphere on AWS
    • KubeSphere on DigitalOcean

Manage the KubeSphere Backup component

Describes how to manage the KubeSphere Backup component.

This section describes how to manage the KubeSphere Backup component.

Prerequisites

Enable the backup component

  1. Log in to the KubeSphere Cloud platform with your account.

  2. In the upper-right corner, hover your cursor over the username area and click Console from the drop-down list.

  3. In the navigation pane on the left, click Resource Management.

  4. On the Kubernetes Clusters tab page, click the target cluster to go to the cluster details page.

  5. On the Components tab page, click On next to Backup and Recovery.

  6. On the Install KubeSphere Backup Component dialog box, click Confirm.

    common:NOTE

    It takes several minutes to install the KubeSphere Backup component. After the component is installed, you can back up and recover data of clusters.

Suspend the backup component

If you want to suspend the backup component, perform the following steps.

  1. Log in to the KubeSphere Cloud platform with your account.

  2. In the upper-right corner, hover your cursor over the username area and click Console from the drop-down list.

  3. In the navigation pane on the left, click Resource Management.

  4. On the Kubernetes Clusters tab page, click the target cluster to go to the cluster details page.

  5. On the Components tab page, click More > Suspend.

  6. On the Suspend KubeSphere Backup Component dialog box, click Confirm and suspend > Suspend.

    common:NOTE

    After suspending the KubeSphere Backup component, you cannot use the backup and recovery features, but can still view your operation history.

Uninstall the backup component

If you want to uninstall the backup component, perform the following steps.

  1. Log in to the KubeSphere Cloud platform with your account.

  2. In the upper-right corner, hover your cursor over the username area and click Console from the drop-down list.

  3. In the navigation pane on the left, click Resource Management.

  4. On the Kubernetes Clusters tab page, click the target cluster to go to the cluster details page.

  5. On the Components tab page, click More > Uninstall.

  6. On the Suspend KubeSphere Backup Component dialog box, click Forcibly uninstall the component > Uninstall.

    common:NOTE

    Exercise caution when you uninstall the component, because you will not be able to use the backup and recovery features.

Manually clear backup resources

In some cases, for example, cluster disconnection, uninstallation may fail. To manually clear the backup resources, refer to the following steps.

common:NOTE

As some CRDs rely on controllers' workloads, you need to delete workloads after deleting CRDs.

  1. Run the following command to delete all CRDs.

    kubectl delete crd backups.velero.io backupstoragelocations.velero.io deletebackuprequests.velero.io downloadrequests.velero.io podvolumebackups.velero.io podvolumerestores.velero.io resticrepositories.velero.io restores.velero.io schedules.velero.io serverstatusrequests.velero.io volumesnapshotlocations.velero.io apphooks.ys.jibudata.com veleroexports.ys.jibudata.com veleroimports.ys.jibudata.com
  2. Run the following command to delete all workloads.

    kubectl -n kubesphere-cloud-system delete deployment/agent-operator deployment/amberapp-controller-manager deployment/data-mover-controller-manager deployment/stub deployment/velero daemonset/restic

KubeSphere ®️ © QingCloud Technologies 2022