|
1 | 1 | ---
|
2 |
| -title: "Quickstart: Configure Backup for an Azure PostgreSQL - Flexible Server using Azure portal" |
3 |
| -description: Learn how to configure backup for your Azure PostgreSQL - Flexible Server with Azure portal. |
| 2 | +title: "Quickstart: Create a Backup policy for an Azure PostgreSQL - Flexible Server using Azure portal" |
| 3 | +description: Learn how to create a Backup policy for your Azure PostgreSQL - Flexible Server with Azure portal. |
4 | 4 | ms.devlang: terraform
|
5 | 5 | ms.custom:
|
6 | 6 | - ignite-2024
|
7 | 7 | ms.topic: quickstart
|
8 |
| -ms.date: 02/18/2025 |
| 8 | +ms.date: 02/28/2025 |
9 | 9 | ms.service: azure-backup
|
10 | 10 | author: jyothisuri
|
11 | 11 | ms.author: jsuri
|
12 | 12 | ---
|
13 | 13 |
|
14 |
| -# Quickstart: Configure backup for Azure Database for PostgreSQL - Flexible Server using Azure portal |
| 14 | +# Quickstart: Create a Backup policy for Azure Database for PostgreSQL - Flexible Server using Azure portal |
15 | 15 |
|
16 |
| -This quickstart describes how to configure backup for Azure Database for PostgreSQL - Flexible Server to an Azure Backup Vault using Azure portal. |
| 16 | +This quickstart describes how to create a Backup policy to protect Azure Database for PostgreSQL - Flexible Server to an Azure Backup Vault using Azure portal. |
| 17 | + |
| 18 | +## Prerequisites |
| 19 | + |
| 20 | +Before you create a Backup policy for Azure Database for PostgreSQL - Flexible Server, ensure the following prerequisites are met: |
17 | 21 |
|
18 | 22 | [!INCLUDE [Prerequisites for backup of Azure Database for PostgreSQL - Flexible Server.](../../includes/backup-postgresql-flexible-server-prerequisites.md)]
|
19 | 23 |
|
20 |
| -[!INCLUDE [Configure protection for Azure Database for PostgreSQL - Flexible Server.](../../includes/configure-postgresql-flexible-server-backup.md)] |
| 24 | +### Create a Backup policy |
| 25 | + |
| 26 | +To create a Backup policy for Azure Database for PostgreSQL - Flexible Server, follow these steps: |
| 27 | + |
| 28 | +1. Go to **Business Continuity Center** > **Protection policies**, and then select **+ Create Policy** > **Create Backup Policy**. |
| 29 | + |
| 30 | + |
| 31 | +2. On the **Start: Create Policy** pane, select the **datasource type** as **Azure Database for PostgreSQL flexible servers**, select the vault under which the policy should be created, and then select Continue. |
| 32 | + |
| 33 | + |
| 34 | +3. On the **Create Backup Policy** pane, on the **Basics** tab, provide a name for the new policy on **Policy name**. |
| 35 | + |
| 36 | + :::image type="content" source="./media/backup-azure-database-postgresql-flex/enter-policy-name.png" alt-text="Screenshot sows how to provide the Backup policy name."::: |
| 37 | + |
| 38 | +4. On the **Schedule + retention** tab, under **Backup schedule**, define the Backup frequency. |
| 39 | + |
| 40 | + >[!Note] |
| 41 | + >The **Weekly backup** option is currently available. However, you can schedule the backups on multiple days of the week. |
| 42 | +
|
| 43 | +5. Under **Retention rules**, select **Add retention rule**. |
| 44 | + |
| 45 | + :::image type="content" source="./media/backup-azure-database-postgresql-flex/define-backup-schedule.png" alt-text="Screenshot shows how to define the backup schedule in the Backup policy." lightbox="./media/backup-azure-database-postgresql-flex/define-backup-schedule.png"::: |
| 46 | + |
| 47 | +6. On the **Add retention** pane, define the retention period, and then select **Add**. |
| 48 | + |
| 49 | + |
| 50 | + >[!Note] |
| 51 | + >The default retention period for **Weekly** backup is **10 years**. You can add retention rules for specific backups, including data store and retention duration. |
| 52 | +
|
| 53 | + :::image type="content" source="./media/backup-azure-database-postgresql-flex/add-retention-rules.png" alt-text="Screenshot shows how to define the retention for the database backups." lightbox="./media/backup-azure-database-postgresql-flex/add-retention-rules.png"::: |
| 54 | + |
| 55 | +7. Once you are on the **Create Backup Policy** pane, select **Review + create**. |
21 | 56 |
|
22 |
| -To track the progress of the backup configuration, go to **Business Continuity Center** > **Monitoring + Reporting** > **Jobs**. Once the backup configuration is complete, you can [run an on-demand backup](backup-azure-database-postgresql-flex.md#run-an-on-demand-backup) to take the first full backup of the database. |
| 57 | + :::image type="content" source="./media/backup-azure-database-postgresql-flex/complete-policy-creation.png" alt-text="Screenshot shows how to trigger the Backup policy creation." lightbox="./media/backup-azure-database-postgresql-flex/complete-policy-creation.png"::: |
23 | 58 |
|
| 59 | + >[!Note] |
| 60 | + >The retention rules are evaluated in a pre-determined order of priority. The priority is the highest for the yearly rule, followed by the monthly, and then the weekly rule. Default retention settings are applied when no other rules qualify. For example, the same recovery point may be the first successful backup taken every week as well as the first successful backup taken every month. However, as the monthly rule priority is higher than that of the weekly rule, the retention corresponding to the first successful backup taken every month applies. |
24 | 61 |
|
25 | 62 | ## Next steps
|
26 | 63 |
|
27 |
| -[Restore Azure Database for PostgreSQL Flexible backups](./restore-azure-database-postgresql-flex.md) |
| 64 | +[Configure backup for Azure Database for PostgreSQL - Flexible Server](tutorial-create-first-backup-azure-database-postgresql-flex.md#configure-backup--for-the-database) |
0 commit comments