Skip to content

Commit 1815e57

Browse files
authored
Merge pull request #241395 from niklarin/backup
Backup/restore updates
2 parents 81a6902 + 52e75e5 commit 1815e57

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

articles/cosmos-db/postgresql/concepts-backup.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Backup and restore – Azure Cosmos DB for PostgreSQL
33
description: Protecting data from accidental corruption or deletion
4-
ms.author: jonels
5-
author: jonels-msft
4+
ms.author: nlarin
5+
author: niklarin
66
ms.service: cosmos-db
77
ms.subservice: postgresql
88
ms.custom: ignite-2022
99
ms.topic: conceptual
10-
ms.date: 04/14/2021
10+
ms.date: 07/10/2023
1111
---
1212

1313
# Backup and restore in Azure Cosmos DB for PostgreSQL
@@ -16,19 +16,20 @@ ms.date: 04/14/2021
1616

1717
Azure Cosmos DB for PostgreSQL automatically creates
1818
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).
2020
Backup and restore are an essential part of any business continuity strategy
2121
because they protect your data from accidental corruption or deletion.
2222

2323
## Backups
2424

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
2728
server to any point in time within the retention period. (The retention period
2829
is currently 35 days for all clusters.) All backups are encrypted using
2930
AES 256-bit encryption.
3031

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
3233
in three availability zones. As long as at least one availability zone is
3334
online, the cluster is restorable.
3435

@@ -47,6 +48,13 @@ the last 35 days. Point-in-time restore is useful in multiple scenarios. For
4748
example, when a user accidentally deletes data, drops an important table or
4849
database, or if an application accidentally overwrites good data with bad data.
4950

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+
5058
> [!IMPORTANT]
5159
> Deleted clusters can't be restored. If you delete the
5260
> 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
5967
original's configuration: the same number of nodes, number of vCores, storage
6068
size, user roles, PostgreSQL version, and version of the Citus extension.
6169

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
66-
tasks](howto-restore-portal.md#post-restore-tasks).
70+
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.
6773

6874
## Next steps
6975

articles/cosmos-db/postgresql/howto-restore-portal.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: cosmos-db
77
ms.subservice: postgresql
88
ms.custom: ignite-2022
99
ms.topic: how-to
10-
ms.date: 01/30/2023
10+
ms.date: 06/12/2023
1111
---
1212

1313
# Point-in-time restore of a cluster in Azure Cosmos DB for PostgreSQL
@@ -19,9 +19,6 @@ recoveries](concepts-backup.md#restore) for a
1919
cluster using backups. You can restore either to the earliest backup or to
2020
a custom restore point within your retention period.
2121

22-
> [!IMPORTANT]
23-
> If the **Restore** option isn't present for your cluster, open an Azure support request to restore your cluster.
24-
2522
## Restore to the earliest restore point
2623

2724
Follow these steps to restore your cluster to its
@@ -59,12 +56,10 @@ back up and running:
5956

6057
* If the new server is meant to replace the original server, redirect clients
6158
and client applications to the new server
62-
* Ensure an appropriate server-level firewall is in place for
63-
users to connect. These rules aren't copied from the original cluster.
64-
* Adjust PostgreSQL server parameters as needed. The parameters aren't copied
65-
from the original cluster.
66-
* Ensure appropriate logins and database level permissions are in place.
67-
* Configure alerts, as appropriate.
59+
* Ensure appropriate [networking settings for private or public access](./concepts-security-overview.md#network-security) are in place for
60+
users to connect. These settings aren't copied from the original cluster.
61+
* Ensure appropriate [logins](./howto-create-users.md) and database level permissions are in place.
62+
* Configure [alerts](./howto-alert-on-metric.md#suggested-alerts), as appropriate.
6863

6964
## Next steps
7065

0 commit comments

Comments
 (0)