> For the complete documentation index, see [llms.txt](https://docs.workflowgen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.workflowgen.com/docker/7.14-7.22/business-continuity-and-disaster-recovery.md).

# 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 on business continuity with 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/)<br>
* [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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
