Skip to main content

Backup and Recovery

Overview

The one tool that AosEdge Cloud use is Velero

Velero is an open-source backup and restore tool for Kubernetes clusters, including those hosted on Azure. It helps you protect and migrate your applications and data in case of disasters or planned maintenance. Here are the basic commands for using Velero to perform backup and restore operations in Azure:

1. Install Velero:

  • To install Velero, you need to download and install the Velero CLI tool on your local machine or within your Kubernetes cluster.
  • You can follow the official Velero documentation for detailed instructions on installation.

2. Configure Velero with Azure Blob Storage:

  • Before performing backups, you need to configure Velero to use Azure Blob Storage as the backup storage location.
  • This involves creating a storage account in Azure and obtaining the necessary credentials and connection information.

3. Create a Backup:

  • To create a backup of your Kubernetes resources, you use the velero backup create command.
  • Specify the backup name, select the namespaces or resources to include, and provide any additional options required.
  • For example:
    velero backup create prod-backup-01 --include-namespaces=prod

4. Restore from a Backup:

  • To restore your Kubernetes resources from a backup, you use the velero restore create command.
  • Specify the backup name or the location of the backup file, and provide any additional options required.
  • For example:
    velero restore create --from-backup aos-prod-velero-monitoring-daily-20230613140558

5. Check Backup and Restore Status:

  • You can check the status of your backups and restores using the velero backup get and velero restore get commands.
  • These commands provide information about the status, completion percentage, and any errors or warnings related to the backup or restore process.

6. Schedule Backups with Velero:

  • Velero allows you to schedule regular backups using the velero schedule create command.
  • Specify the backup schedule, frequency, retention policy, and other options as per your requirements.
  • For example:
    velero schedule create my-schedule --schedule="@every 24h" --include-namespaces=prod

By default, backup is scheduled to make everyday backups with 7 days expiration

Summary

These commands provide a basic overview of how to use Velero for backup and restore operations in Azure. It is important to review the official Velero documentation for detailed instructions and to explore additional features and options based on your specific backup and restore requirements.