Skip to main content

Backup and Restore PVC

Protect your application data by scheduling PVC backups on your Managed Kubernetes cluster, and restore from them whenever you need to recover a volume.

Create a Backup Plan​

  1. In the navigation menu, select Containers → Kubernetes.

  2. Open the cluster details screen, select the Backup tab, then select Create backup job.

    Create backup job button on the Backup tab

  3. In Create backup job:

    • Enter the backup plan name and an optional description; job type is Backup Volume.
    • Choose the target Persistent Volume to back up.
    • Set a daily, weekly, or monthly backup schedule — or back up manually if you don't want a schedule.

    Backup job creation form with schedule options

View a Backup Plan​

  1. In the navigation menu, select Containers → Kubernetes.

  2. Open the cluster details screen and select the Backup tab. All created backup plans are listed here.

    List of backup plans on the Backup tab

Update a Backup Plan​

  1. In the navigation menu, select Containers → Kubernetes.

  2. Open the cluster details screen and select the Backup tab.

  3. Select the job name to open the Update backup job screen.

    Update backup job screen

    Backup job update fields

Enable, disable, or delete a Backup Plan​

  1. In the navigation menu, select Backup & Recovery.

  2. Open the Backup job tab.

  3. Select a backup job, then select the 3-dot icon for Enable, Disable, or Delete.

    Enable, Disable, Delete menu on a backup job

Backup Report​

Reports are generated automatically and sent to a selected email daily, weekly, or monthly, so you can confirm backups are working correctly.

  1. In the navigation menu, select Backup & Recovery.
  2. Open the Report tab.
  3. Select Add auto report job to receive reports by email on a schedule.
  4. To generate a one-time report instead, select Get report and fill in the required information.

Reports export in .xlsx format.

Report tab with Add auto report job and Get report options

Restore from backup​

Create a restore​

  1. In the navigation menu, select Containers → Kubernetes.

  2. Open the cluster details screen, select the Backup tab, then select the PVC Restore sub-tab.

  3. Select Restore volume. You're redirected to the Backup & Recovery service, Restore tab.

  4. In the restore target list, select the 3-dot icon on the volume to restore, then select Restore keep. This creates a new PV and keeps the original PV intact.

    Restore keep option on a volume in the Restore tab

  5. Once the restore completes, go back to Containers → Kubernetes → cluster details → Backup → PVC Restore.

  6. Find the restored PV in Select available restored PV, then select Create PVC.

    Create PVC option on a restored PV

  7. Fill in Target Namespace and New PVC Name. PVC size and access mode are pre-filled and can't be changed.

    Create PVC dialog with Target Namespace and New PVC Name fields

  8. Select Confirm to create the PVC.

note

Each PV can only be bound to 1 PVC. Delete the existing PVC before reusing a PV.

View a restore​

  1. In the navigation menu, select Containers → Kubernetes.

  2. Open the cluster details screen, select the Backup tab, then select the PVC Restored sub-tab. All PVCs created from restored volumes appear here with Source PVC Name, New PVC Name, Namespace, Size, Status, and Restored Date.

    List of restored PVCs with status columns

Delete a restore​

note

A restore can only be deleted after the restoration has failed.

  1. In the navigation menu, select Containers → Kubernetes.
  2. Open the cluster details screen, select the Backup tab, then select the PVC Restored sub-tab.
  3. Find the restore entry to remove, then select Delete in the Action column.
  4. Confirm the deletion. The entry is removed from the list.