# Business Continuity & Disaster Recovery

## Overview

This section contains pointers to get started with different solutions for creating backups and recovering from an unforeseen data loss.

{% hint style="info" %}
In production, you should be using an orchestrator like Docker Swarm, Kubernetes, or Kubernetes in Azure Kubernetes Service.
{% endhint %}

## WorkflowGen files

### SMB file shares

You should have at least three different storage shares to handle WorkflowGen persistent files. If you used custom SMB file shares, you should have a strategy to back up the disks for the file share. If a problem occurs, you can restore a backup. Don't forget to restore the database data to the exact time as the file share backup.

### Azure Files

For Azure Files, see the following documentation on backups and restorations:

* [Back up Azure file shares](https://docs.microsoft.com/en-us/azure/backup/backup-azure-files)
* [Azure storage disaster recovery planning and failover](https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance?toc=%2Fazure%2Fstorage%2Ffiles%2Ftoc.json)

### Azure Disks

For Azure Disks, see the following documentation on backups and restorations:

* [Backup and disaster recovery for Azure managed disks](https://learn.microsoft.com/en-us/azure/virtual-machines/backup-and-disaster-recovery-for-azure-iaas-disks)

## Database

### On-premise database

See the [Operations](https://docs.advantys.com/docs/tech/operations) section in the [WorkflowGen Technical Guide](https://docs.advantys.com/docs/tech/) for information on backup and restoration of on-premise databases.

### Azure SQL

See the following Microsoft documentation about business continuity for Azure SQL:

* [Overview of business continuity with Azure SQL Database](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-business-continuity)

## Kubernetes

Creating backups and recovering with them in Kubernetes can be complicated, but tools exist to help manage this. Here's an article about backups with Kubernetes:

* [Kubernetes: Backups and recovery](https://medium.com/@pmvk/kubernetes-backups-and-recovery-efc33180e89d)

There are two main tools for backup and recovery:&#x20;

* [Velero](https://velero.io/)
* [kube-backup](https://github.com/pieterlange/kube-backup)

## Azure Kubernetes Service

As with other Azure Services, Microsoft provides guides for backups and restorations:

* [Best practices for business continuity and disaster recovery in Azure Kubernetes Service (AKS)](https://docs.microsoft.com/en-us/azure/aks/operator-best-practices-multi-region)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.workflowgen.com/docker/business-continuity-and-disaster-recovery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
