Skip to content

Commit 04a463b

Browse files
authored
Merge pull request #272497 from markingmyname/vandhana
[MySQL] Add new Preview Backup and Export Trigger section
2 parents a5b6926 + 1c1651f commit 04a463b

File tree

8 files changed

+69
-22
lines changed

8 files changed

+69
-22
lines changed
Lines changed: 69 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,96 @@
11
---
22
title: Trigger on-demand backup by using the Azure portal
3-
description: This article describes how to trigger an on-demand backup from the Azure portal.
4-
ms.service: mysql
5-
ms.subservice: flexible-server
6-
ms.topic: how-to
3+
description: This article provides a step-by-step guide on triggering an on-demand backup of an Azure Database for MySQL - Flexible Server instance.
74
author: VandhanaMehta
85
ms.author: vamehta
96
ms.reviewer: maghan
10-
ms.date: 07/26/2022
7+
ms.date: 04/17/2024
8+
ms.service: mysql
9+
ms.subservice: flexible-server
10+
ms.topic: how-to
11+
# customer intent: As a user, I want to learn how to trigger an on-demand backup from the Azure portal so that I can have more control over my database backups.
1112
---
1213

1314
# Trigger on-demand backup of an Azure Database for MySQL - Flexible Server instance by using the Azure portal
1415

15-
[!INCLUDE[applies-to-mysql-flexible-server](../includes/applies-to-mysql-flexible-server.md)]
16+
[!INCLUDE [applies-to-mysql-flexible-server](../includes/applies-to-mysql-flexible-server.md)]
1617

17-
This article provides step-by-step procedure to trigger On-Demand backup from the portal.
18+
This article provides a step-by-step procedure to trigger an on-demand backup from the Azure portal.
1819

1920
## Prerequisites
2021

21-
To complete this how-to guide, you need an Azure Database for MySQL flexible server instance.
22+
You need an Azure Database for MySQL flexible server instance to complete this how-to guide.
23+
24+
- Create a MySQL flexible server instance by following the steps in the article [Quickstart: Create an instance of Azure Database for MySQL - Flexible Server by using the Azure portal](quickstart-create-server-portal.md).
25+
26+
## Trigger on-demand backup
27+
28+
Follow these steps to trigger backup on demand:
29+
30+
1. In the [Azure portal](https://portal.azure.com/), choose your Azure Database for the MySQL flexible server instance you want to back up.
31+
32+
1. Under **Settings** select **Backup and restore** from the left panel.
33+
34+
1. From the **Backup and restore** page, select **Backup Now**.
35+
36+
1. Now on the **Take backup** page, in the **Backup name** field, provide a custom name for the backup.
37+
38+
1. Select **Trigger**
39+
40+
:::image type="content" source="media/how-to-trigger-on-demand-backup/trigger-on-demand-backup.png" alt-text="Screenshot showing how to trigger an on-demand backup." lightbox="media/how-to-trigger-on-demand-backup/trigger-on-demand-backup.png":::
41+
42+
1. Once completed, the on-demand and automated backups are listed.
43+
44+
## Trigger an On-Demand Backup and Export (preview)
45+
46+
Follow these steps to trigger an on-demand backup and export:
47+
48+
1. In the [Azure portal](https://portal.azure.com/), choose your Azure Database for MySQL flexible server instance to take a backup of and export.
49+
50+
1. Under **Settings** select **Backup and restore** from the left panel.
51+
52+
1. From the **Backup and restore** page, select **Export now**.
53+
54+
:::image type="content" source="media/how-to-trigger-on-demand-backup/export-backup.jpg" alt-text="Screenshot of the export now option is selected." lightbox="media/how-to-trigger-on-demand-backup/export-backup.jpg":::
55+
56+
1. When the **Export backup** page is shown, provide a custom name for the backup in the **Backup name** field or use the default populated name.
57+
58+
:::image type="content" source="media/how-to-trigger-on-demand-backup/select-backup-name.jpg" alt-text="Screenshot of providing a custom name for the backup in the backup name field." lightbox="media/how-to-trigger-on-demand-backup/select-backup-name.jpg":::
59+
60+
1. Select **Select storage**, then select the storage account, which is the target for the on-demand backup to be exported to.
61+
62+
:::image type="content" source="media/how-to-trigger-on-demand-backup/select-storage-account.jpg" alt-text="Screenshot of selecting the storage account." lightbox="media/how-to-trigger-on-demand-backup/select-storage-account.jpg":::
2263

23-
## Trigger On-Demand Backup
64+
1. Select the container from the list displayed, then **Select**.
2465

25-
Follow these steps to trigger back up on demand:
66+
:::image type="content" source="media/how-to-trigger-on-demand-backup/click-select.jpg" alt-text="Screenshot of listing the containers to use." lightbox="media/how-to-trigger-on-demand-backup/click-select.jpg":::
2667

27-
1. In the [Azure portal](https://portal.azure.com/), choose your Azure Database for MySQL flexible server instance that you want to take a backup of.
68+
1. Then select **Export**.
2869

29-
2. Select **Backup** and Restore from the left panel.
70+
:::image type="content" source="media/how-to-trigger-on-demand-backup/click-export.jpg" alt-text="Screenshot of the Export button to choose what to export." lightbox="media/how-to-trigger-on-demand-backup/click-export.jpg":::
3071

31-
3. From the Backup and Restore page, Select **Backup Now**.
72+
1. You should see the exported on-demand backup in the target storage account once exported.
3273

33-
4. Take backup page is shown. Provide a custom name for the backup in the Backup name field.
74+
1. If you don't have a precreated storage account to select from, select "+Storage Account," and the portal initiates a storage account creation workflow to help you create a storage account to export the backup.
3475

35-
:::image type="content" source="./media/how-to-trigger-on-demand-backup/trigger-ondemand-backup.png" alt-text="Screenshot showing how to trigger On-demand backup.":::
76+
## Restore from an exported on-demand full backup
3677

37-
5. Select **Trigger**
78+
1. Download the backup file from the Azure storage account using Azure Storage Explorer.
3879

39-
6. A notification shows that a backup has been initiated.
80+
1. Install the MySQL community version from MySQL. Download MySQL Community Server. The downloaded version must be the same or compatible with the version of the exported
81+
backups.
4082

41-
7. Once completed, the on demand backup is seen listed along with the automated backups in the View Available Backups page.
83+
1. Open the command prompt and navigate to the bin directory of the downloaded MySQL community version folder.
4284

43-
## Restore from an On-Demand full backup
85+
1. Now specify the data directory using `--datadir` by running the following command at the command prompt:
86+
87+
```bash
88+
mysqld --datadir=<path to the data folder of the files downloaded>
89+
```
4490

45-
Learn more about [Restore a server](how-to-restore-server-portal.md)
91+
1. Connect to the database using any supported client.
4692

47-
## Next steps
93+
## Related content
4894

49-
Learn more about [business continuity](concepts-business-continuity.md)
95+
- [Point-in-time restore in Azure Database for MySQL - Flexible Server with the Azure portal](how-to-restore-server-portal.md)
96+
- [Overview of business continuity with Azure Database for MySQL - Flexible Server](concepts-business-continuity.md)
110 KB
Loading
148 KB
Loading
584 KB
Loading
50.9 KB
Loading
116 KB
Loading
77 KB
Loading

0 commit comments

Comments
 (0)