NatronTech Logo
Backup

Velero Backup and Restore

Availability
Stage
Experimental

Backup and Restore is part of the Backup package.

Velero Logo

Velero is an open-source tool that provides backup, restore, and disaster recovery capabilities for Kubernetes clusters. It enables users to back up their cluster resources and persistent volumes, allowing for easy restoration in case of data loss or corruption.

Key Features

  • Backup and Restore: Velero allows you to create backups of your Kubernetes cluster resources and persistent volumes, which can be restored when needed.
  • Disaster Recovery: In the event of a cluster failure, Velero can help you recover your applications and data quickly.
  • Migration: Velero can be used to migrate workloads between different Kubernetes clusters.
  • Scheduling: You can schedule regular backups to ensure that your data is consistently protected.

Velero at Natron Managed Kubernetes Service

Natron offers Velero as part of its Managed Kubernetes Service, providing users with a reliable and efficient way to back up and restore their Kubernetes workloads. With Velero integrated into the Natron platform, users can easily manage their backup and restore operations.

Default Configuration

Natron automatically schedules daily backups for all Kubernetes clusters managed by the service. These backups are retained for a period of 30 days, ensuring that users have access to recent restore points in case of data loss.

Custom Backup Policies

If different backup schedules or retention policies are required, users can contact Natron support to customize their backup configurations according to their specific needs.

User Guide

This section provides a step-by-step guide on how to use Velero for backup and restore operations within Natron Managed Kubernetes Service.

Velero CLI Installation

Plrease refer to the official Velero Installation Guide to install the Velero CLI on your local machine.

Context

Velero CLI will interact with the Kubernetes cluster currently set in your kubeconfig file. Ensure that your kubeconfig is properly configured to point to the desired Natron Managed Kubernetes cluster. See the Connect Client guide for assistance.

Explore Existing Backups

To list all available backups in your Kubernetes cluster, run the following command:

List Backups Command

velero backup get

Create Manual Backups

Namespace

To create a manual backup of specific namespaces in your Kubernetes cluster, follow these steps:

Create Backup Command

Run the following command to create a backup:

velero backup create <BACKUP_NAME> --include-namespaces <NAMESPACE1>,<NAMESPACE2>

Replace <BACKUP_NAME> with a name for your backup and <NAMESPACE1>,<NAMESPACE2> with a comma-separated list of namespaces you want to include in the backup. Omit the --include-namespaces flag to back up all namespaces.

Verify Backup

You can verify that the backup was created successfully by running:

velero backup get

Persistent Volumes

To create a manual backup of persistent volumes in your Kubernetes cluster, follow these steps:

Create Backup Command

Run the following command to create a backup:

velero backup create <BACKUP_NAME> --include-resources persistentvolumeclaims

Replace <BACKUP_NAME> with a name for your backup.

Verify Backup

You can verify that the backup was created successfully by running:

velero backup get

Restore from Backup

Namespace

To restore a backup for specific namespaces in your Kubernetes cluster, follow these steps:

Restore Command

Run the following command to restore a backup:

velero restore create --from-backup <BACKUP_NAME> --include-namespaces <NAMESPACE1>,<NAMESPACE2>

Replace <BACKUP_NAME> with the name of the backup you want to restore and <NAMESPACE1>,<NAMESPACE2> with a comma-separated list of namespaces you want to restore. Omit the --include-namespaces flag to restore all namespaces.

Verify Restore

You can verify that the restore was initiated successfully by running:

velero restore get

Persistent Volumes

To restore a backup for persistent volumes in your Kubernetes cluster, follow these steps:

Restore command

Run the following command to restore a backup:

velero restore create --from-backup <BACKUP_NAME> --include-resources persistentvolumeclaims

Replace <BACKUP_NAME> with the name of the backup you want to restore.

Verify Restore

You can verify that the restore was initiated successfully by running:

velero restore get

Additional Resources

On this page