Managing backups for your Kubernetes systems
You can manage backups for your Kubernetes systems by changing the backup schedule, enabling/disabling volume backups, deleting backups, and more.
Do not manage or change backup files directly from your cloud provider environment. This may corrupt the files and will result in an unsupported configuration. |
Viewing the volumes that are being backed up
You can view a list of all the volumes that are currently being backed up by BlueXP backup and recovery.
-
From the BlueXP menu, select Protection > Backup and recovery.
-
Click the Kubernetes tab to view the list of persistent volumes for Kubernetes systems.
If you are looking for specific volumes in certain clusters, you can refine the list by cluster and volume, or you can use the search filter.
Enabling and disabling backups of volumes
You can stop backing up a volume if you do not need backup copies of that volume and you do not want to pay for the cost to store the backups. You can also add a new volume to the backup list if it is not currently being backed up.
-
From the Kubernetes tab, select Backup Settings.
-
From the Backup Settings page, click for the Kubernetes cluster and select Manage Persistent Volumes.
-
Select the checkbox for a volume, or volumes, that you want to change, and then click Activate or Deactivate depending on whether you want to start or stop backups for the volume.
-
Click Save to commit your changes.
Note: When stopping a volume from being backed up you'll continue to be charged by your cloud provider for object storage costs for the capacity that the backups use unless you delete the backups.
Editing an existing backup policy
You can change the attributes for a backup policy that is currently applied to volumes in a working environment. Changing the backup policy affects all existing volumes that are using the policy.
-
From the Kubernetes tab, select Backup Settings.
-
From the Backup Settings page, click for the working environment where you want to change the settings, and select Manage Policies.
-
From the Manage Policies page, click Edit Policy for the backup policy you want to change in that working environment.
-
From the Edit Policy page, change the schedule and backup retention and click Save.
Setting a backup policy to be assigned to new volumes
If you did not select the option to automatically assign a backup policy to newly created volumes when you first activated BlueXP backup and recovery on your Kubernetes cluster, you can choose this option in the Backup Settings page later. Having a backup policy assigned to newly created volumes ensures that all your data is protected.
Note that the policy that you want to apply to the volumes must already exist.
You can also disable this setting so that newly created volumes do not get backed up automatically. In that case you'll need to manually enable backups for any specific volumes that you do want to back up in the future.
-
From the Kubernetes tab, select Backup Settings.
-
From the Backup Settings page, click for the Kubernetes cluster where the volumes exist, and select Auto Backup New Volumes.
-
Select the checkbox "Automatically back up future persistent volumes…", choose the backup policy that you want to apply to new volumes, and click Save.
Now this backup policy will be applied to any new volumes created in this Kubernetes cluster.
Viewing the list of backups for each volume
You can view the list of all backup files that exist for each volume. This page displays details about the source volume, destination location, and backup details such as last backup taken, the current backup policy, backup file size, and more.
This page also enables you perform the following tasks:
-
Delete all backup files for the volume
-
Delete individual backup files for the volume
-
Download a backup report for the volume
-
From the Kubernetes tab, click for the source volume and select Details & Backup List.
The list of all backup files is displayed along with details about the source volume, destination location, and backup details.
Deleting backups
BlueXP backup and recovery enables you to delete a single backup file, delete all backups for a volume, or delete all backups of all volumes in a Kubernetes cluster. You might want to delete all backups if you no longer need the backups or if you deleted the source volume and want to remove all backups.
If you plan to delete a working environment or cluster that has backups, you must delete the backups before deleting the system. BlueXP backup and recovery doesn’t automatically delete backups when you delete a system, and there is no current support in the UI to delete the backups after the system has been deleted. You'll continue to be charged for object storage costs for any remaining backups. |
Deleting all backup files for a working environment
Deleting all backups for a working environment does not disable future backups of volumes in this working environment. If you want to stop creating backups of all volumes in a working environment, you can deactivate backups as described here.
-
From the Kubernetes tab, select Backup Settings.
-
Click for the Kubernetes cluster where you want to delete all backups and select Delete All Backups.
-
In the confirmation dialog box, enter the name of the working environment and click Delete.
Deleting all backup files for a volume
Deleting all backups for a volume also disables future backups for that volume.
You can restart making backups for the volume at any time from the Manage Backups page.
-
From the Kubernetes tab, click for the source volume and select Details & Backup List.
The list of all backup files is displayed.
-
Click Actions > Delete all Backups.
-
In the confirmation dialog box, enter the volume name and click Delete.
Deleting a single backup file for a volume
You can delete a single backup file. This feature is available only if the volume backup was created from a system with ONTAP 9.8 or greater.
-
From the Kubernetes tab, click for the source volume and select Details & Backup List.
The list of all backup files is displayed.
-
Click for the volume backup file you want to delete and click Delete.
-
In the confirmation dialog box, click Delete.
Disabling BlueXP backup and recovery for a working environment
Disabling BlueXP backup and recovery for a working environment disables backups of each volume on the system, and it also disables the ability to restore a volume. Any existing backups will not be deleted. This does not unregister the backup service from this working environment - it basically allows you to pause all backup and restore activity for a period of time.
Note that you'll continue to be charged by your cloud provider for object storage costs for the capacity that your backups use unless you delete the backups.
-
From the Kubernetes tab, select Backup Settings.
-
From the Backup Settings page, click for the working environment, or the Kubernetes cluster, where you want to disable backups and select Deactivate Backup.
-
In the confirmation dialog box, click Deactivate.
An Activate Backup button appears for that working environment while backup is disabled. You can click this button when you want to re-enable backup functionality for that working environment. |
Unregistering BlueXP backup and recovery for a working environment
You can unregister BlueXP backup and recovery for a working environment if you no longer want to use backup functionality and you want to stop being charged for backups in that working environment. Typically this feature is used when you're planning to delete a Kubernetes cluster, and you want to cancel the backup service.
You can also use this feature if you want to change the destination object store where your cluster backups are being stored. After you unregister BlueXP backup and recovery for the working environment, then you can enable BlueXP backup and recovery for that cluster using the new cloud provider information.
Before you can unregister BlueXP backup and recovery, you must perform the following steps, in this order:
-
Deactivate BlueXP backup and recovery for the working environment
-
Delete all backups for that working environment
The unregister option is not available until these two actions are complete.
-
From the Kubernetes tab, select Backup Settings.
-
From the Backup Settings page, click for the Kubernetes cluster where you want to unregister the backup service and select Unregister.
-
In the confirmation dialog box, click Unregister.