> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cockroachlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Disaster Recovery Overview

Resilient deployments aim for continuity in database operations to protect from data loss and downtime. CockroachDB's built-in [Raft replication](/docs/stable/architecture/replication-layer.md) and [fault tolerance](/docs/stable/demo-cockroachdb-resilience.md) provide high availability. However, it is still important to design a *disaster recovery* plan to recover from unforeseen incidents to minimize downtime and data loss.

As you evaluate CockroachDB's disaster recovery features, consider your organization's requirements for the amount of tolerable data loss and the acceptable length of time to recover.

* **Recovery Point Objective (RPO)**: The maximum amount of data loss (measured by time) that an organization can tolerate.
* **Recovery Time Objective (RTO)**: The maximum length of time it should take to restore normal operations following an outage.

When you use backups, RPO and RTO can be visualized as follows:

![Simulating RPO and RTO. With RPO representing the tolerable data loss, and RTO representing the tolerable time to recovery.](https://mintcdn.com/cockroachlabs/iiBVxthghoAOO3UM/images/common/rpo-rto.png?fit=max\&auto=format\&n=iiBVxthghoAOO3UM\&q=85\&s=a351ee446a3997d921dd8ef95db6ad17)

> [!NOTE]
>
> For an overview of resiliency features in CockroachDB, refer to [Data Resilience](/docs/stable/data-resilience.md).

## Choose a disaster recovery strategy

CockroachDB is designed to recover automatically; however, building [backups](/docs/stable/backup-and-restore-overview.md) or [physical cluster replication](/docs/stable/physical-cluster-replication-overview.md) into your disaster recovery planning protects against unforeseen incidents.

| | Point-in-time backup & restore | Physical cluster replication (asynchronous) |
| - | - | - |
| **RPO** | >=5 minutes | 10s of seconds |
| **RTO** | Minutes to hours, depending on data size and number of nodes | Seconds to minutes, depending on cluster size, and time of failover |
| **Write latency** | No impact | No impact |
| **Recovery** | Manual restore | Manual failover |
| **Fault tolerance** | Not applicable | Zero RPO node, availability zone within a cluster, region failures with loss up to RPO in a two-region (or two-datacenter) setup |
| **Minimum regions to achieve fault tolerance** | 1 | 2 |

## See also

* [Set Up Physical Cluster Replication](/docs/stable/set-up-physical-cluster-replication.md)
* [Physical Cluster Replication Technical Overview](/docs/stable/physical-cluster-replication-technical-overview.md)
* [Backup Architecture](/docs/stable/backup-architecture.md)
* [Backup and Restore Overview](/docs/stable/backup-and-restore-overview.md)
* [Managed Backups](/docs/cockroachcloud/managed-backups.md)
