This document provides a detailed guide on how to recover your data from backups using Longhorn. It is designed to help users restore their services and volumes efficiently.
- Introduction
- Step 1 - Access the Longhorn Backup Page
- Step 2 - Recover Backups
- Step 3 - Bind Volumes
- Step 4 - Deploy Services
Navigate to the Longhorn backup page to see a comprehensive list of all available backups.
-
Navigate to the Backup tab.
-
Select the backups you wish to recover.
Note: If you want to recover an entire service, you must choose all the related backups.
-
For "Recovery Options", select "Read-Write" mode, then click "OK".
First, navigate to the Volumes tab.
Initially, the volume's state will be "Detached", and PV/PVC will be empty.
Create PV and PVC for the backup by selecting the backup and clicking "Create PV/PVC".
Click "OK".
The PV/PVC section of the volume will then become "Bound".
If you have multiple volumes to recover, please repeat the process for each one.
Switch to the correct Kubernetes context:
kubectl config use-context {{k8s-context}}
Ensure the service you wish to recover is not running. You can uninstall the service using Helm:
helm uninstall {{service-name}}
Redeploy the service, and the volume will be mounted automatically.
make manually-deploy-{{service-name}} DEPLOY_ENV={{env}}