You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/postgresql/concepts-backup.md
+18-12Lines changed: 18 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
2
title: Backup and restore – Azure Cosmos DB for PostgreSQL
3
3
description: Protecting data from accidental corruption or deletion
4
-
ms.author: jonels
5
-
author: jonels-msft
4
+
ms.author: nlarin
5
+
author: niklarin
6
6
ms.service: cosmos-db
7
7
ms.subservice: postgresql
8
8
ms.custom: ignite-2022
9
9
ms.topic: conceptual
10
-
ms.date: 04/14/2021
10
+
ms.date: 07/10/2023
11
11
---
12
12
13
13
# Backup and restore in Azure Cosmos DB for PostgreSQL
@@ -16,19 +16,20 @@ ms.date: 04/14/2021
16
16
17
17
Azure Cosmos DB for PostgreSQL automatically creates
18
18
backups of each node and stores them in locally redundant storage. Backups can
19
-
be used to restore your cluster to a specified time.
19
+
be used to restore your cluster to a specified time - point-in-time restore (PITR).
20
20
Backup and restore are an essential part of any business continuity strategy
21
21
because they protect your data from accidental corruption or deletion.
22
22
23
23
## Backups
24
24
25
-
At least once a day, Azure Cosmos DB for PostgreSQL takes snapshot backups of
26
-
data files and the database transaction log. The backups allow you to restore a
25
+
Automated process performs backup of each Azure Cosmos DB for PostgreSQL node from the moment your cluster is provisioned and throughout cluster's lifecycle. Azure Cosmos DB for PostgreSQL takes periodic disk snapshots and combines it with the node's [WAL files](https://www.postgresql.org/docs/current/wal-intro.html) streaming to Azure blob storage.
26
+
27
+
The backups allow you to restore a
27
28
server to any point in time within the retention period. (The retention period
28
29
is currently 35 days for all clusters.) All backups are encrypted using
29
30
AES 256-bit encryption.
30
31
31
-
In Azure regions that support availability zones, backup snapshots are stored
32
+
In Azure regions that support availability zones, backup snapshots and WAL files are stored
32
33
in three availability zones. As long as at least one availability zone is
33
34
online, the cluster is restorable.
34
35
@@ -47,6 +48,13 @@ the last 35 days. Point-in-time restore is useful in multiple scenarios. For
47
48
example, when a user accidentally deletes data, drops an important table or
48
49
database, or if an application accidentally overwrites good data with bad data.
49
50
51
+
> [!NOTE]
52
+
> While cluster backups are always stored for 35 days, you may need to
53
+
> open a support request to restore the cluster to a point that is earlier
54
+
> than the latest failover time.
55
+
56
+
When all nodes are up and running, you can restore cluster without any data loss. In an extremely rare case of a node experiencing a catastrophic event (and [high availability](./concepts-high-availability.md) isn't enabled on the cluster), you may lose up to 5 minutes of data.
57
+
50
58
> [!IMPORTANT]
51
59
> Deleted clusters can't be restored. If you delete the
52
60
> cluster, all nodes that belong to the cluster are deleted and can't
@@ -59,11 +67,9 @@ subscription, and resource group as the original. The cluster has the
59
67
original's configuration: the same number of nodes, number of vCores, storage
60
68
size, user roles, PostgreSQL version, and version of the Citus extension.
61
69
62
-
Firewall settings and PostgreSQL server parameters are not preserved from the
63
-
original cluster, they are reset to default values. The firewall will
64
-
prevent all connections. You will need to manually adjust these settings after
65
-
restore. In general, see our list of suggested [post-restore
Networking settings aren't preserved from the original cluster, they're reset to default values. You'll need to manually adjust these settings after restore to allow access to the restored cluster. In general, see our list of suggested [post-restore tasks](howto-restore-portal.md#post-restore-tasks).
71
+
72
+
In most cases, cluster restore takes up to 1 hour.
0 commit comments