Skip to content

Latest commit

 

History

History
77 lines (44 loc) · 2.3 KB

recover-from-backup.md

File metadata and controls

77 lines (44 loc) · 2.3 KB

Recover from Backup

Introduction

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.

Table of Contents

Step 1 - Access the Longhorn Backup Page

Navigate to the Longhorn backup page to see a comprehensive list of all available backups.

Available Backups in Longhorn

Step 2 - Recover Backups

  1. Navigate to the Backup tab.

  2. Select the backups you wish to recover.

    Note: If you want to recover an entire service, you must choose all the related backups.

    Recover Backup - Selection

  3. For "Recovery Options", select "Read-Write" mode, then click "OK".

Recover Backup - Options

Step 3 - Bind Volumes

First, navigate to the Volumes tab.

Initially, the volume's state will be "Detached", and PV/PVC will be empty.

Volume State - Detached

Create PV and PVC for the backup by selecting the backup and clicking "Create PV/PVC".

Create PV/PVC - Step 1

Click "OK".

Create PV/PVC - Confirmation

The PV/PVC section of the volume will then become "Bound".

Volume State - Bound

If you have multiple volumes to recover, please repeat the process for each one.

Step 4 - Deploy Services

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}}

Service Restored Successfully