|
| 1 | +# Azure MySQL: <br/> Backup (BU) & Disaster Recovery (DR) - Overview |
| 2 | + |
| 3 | +Costa Rica |
| 4 | + |
| 5 | +[](https://github.com) |
| 6 | +[](https://github.com/) |
| 7 | +[brown9804](https://github.com/brown9804) |
| 8 | + |
| 9 | +Last updated: 2025-03-17 |
| 10 | + |
| 11 | +---------- |
| 12 | + |
| 13 | +<details> |
| 14 | +<summary><b>List of References </b> (Click to expand)</summary> |
| 15 | + |
| 16 | +- [Backup and restore in Azure Database for MySQL - Flexible Server](https://learn.microsoft.com/en-us/azure/mysql/flexible-server/concepts-backup-restore) |
| 17 | +- [Back up an Azure Database for MySQL flexible server by using Azure Backup (preview)](https://learn.microsoft.com/en-us/azure/backup/backup-azure-mysql-flexible-server) |
| 18 | +- [Migrate your MySQL database to Azure Database for MySQL - Flexible Server using dump and restore](https://learn.microsoft.com/en-us/azure/mysql/flexible-server/concepts-migrate-dump-restore) |
| 19 | +- [Trigger on-demand backup of an Azure Database for MySQL - Flexible Server instance by using the Azure portal](https://learn.microsoft.com/en-us/azure/mysql/flexible-server/how-to-trigger-on-demand-backup) |
| 20 | + |
| 21 | +</details> |
| 22 | + |
| 23 | +> [!NOTE] |
| 24 | +> Quick reference on how to create an Azure Database for MySQL Flexible Server: |
| 25 | +
|
| 26 | +https://github.com/user-attachments/assets/1c6efd8a-987a-46ac-a81d-6d4ae74b07fd |
| 27 | + |
| 28 | +## Backup (BU) for MySQL on Azure |
| 29 | + |
| 30 | +| **Category** | **Description** | |
| 31 | +|-----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 32 | +| **Automated Backups** | - **Daily Backups**: Azure Database for MySQL automatically performs daily backups of your databases. These backups are stored in geo-redundant storage (GRS) to ensure high availability.<br/>- **Retention Period**: Configure the retention period for automated backups, typically ranging from 7 to 35 days.<br/>- **Point-in-Time Restore (PITR)**: Restore your database to any point within the retention period, providing flexibility in case of accidental data loss or corruption. | |
| 33 | +| **Manual Backups** | - **On-Demand Backups**: Create manual backups at any time. These backups are stored in GRS and can be used to restore your database to the state at the time of the backup.<br/>- **Exporting Data**: Export your MySQL database using the `mysqldump` utility, which can be stored in Azure Blob Storage or downloaded locally for additional safety. | |
| 34 | +| **Backup Storage** | - **Geo-Redundant Storage (GRS)**: By default, backups are stored in GRS, which replicates data to a secondary region to ensure durability and availability.<br/>- **Locally Redundant Storage (LRS)**: For cost savings, you can opt for LRS, which keeps multiple copies of your data within a single region. | |
| 35 | + |
| 36 | +### Automated Backups |
| 37 | + |
| 38 | +> `Automated Backups` for Azure Database for MySQL ensure that your data is regularly backed up without manual intervention. |
| 39 | +
|
| 40 | +#### Daily Backups |
| 41 | + |
| 42 | +> Azure Database for MySQL automatically performs daily snapshot backups of the data files and transaction logs. These backups are stored in geo-redundant storage (GRS) to ensure high availability and durability. |
| 43 | +
|
| 44 | +1. **Access the Azure Portal**: Navigate to the Azure Portal and sign in with your credentials. |
| 45 | +2. **Navigate to Your MySQL Flexible Server**: In the Azure Portal, go to `All resources` and select your Azure Database for MySQL Flexible Server instance. |
| 46 | +3. **Compute + Storage Settings**: In the left-hand menu, under `Settings`, select `Compute + storage`. |
| 47 | +4. **Backup Retention**: |
| 48 | + - In the `Backups` section, you will find the slider labeled `Backup retention period in days`. |
| 49 | + - Use the slider to set the retention period for automated backups, which can range from 7 to 35 days. |
| 50 | + |
| 51 | + https://github.com/user-attachments/assets/769fa81a-450f-4cd9-a4d9-8f4f227c01c9 |
| 52 | + |
| 53 | +5. **Backup Redundancy**: |
| 54 | + - Below the retention slider, you will see options for backup redundancy: |
| 55 | + - **Locally-redundant**: Keeps multiple copies of your data within a single region. |
| 56 | + - **Geo-redundant**: Replicates data to a secondary region to ensure durability and availability. |
| 57 | + - **Read-access geo-redundant**: Provides read access to the replicated data in the secondary region. |
| 58 | + - Select the desired redundancy option based on your requirements. |
| 59 | + |
| 60 | + https://github.com/user-attachments/assets/ea53958a-ca3e-4100-a527-d0e46cdb992e |
| 61 | + |
| 62 | + |
| 63 | +### Manual Backups |
| 64 | + |
| 65 | +> `Manual Backups` provide additional control over backup operations, allowing you to create backups on demand. |
| 66 | +
|
| 67 | +#### On-Demand Backups |
| 68 | + |
| 69 | +> You can create manual backups at any time. These backups are stored in geo-redundant storage (GRS) and can be used to restore your database to the state at the time of the backup. |
| 70 | +
|
| 71 | +1. **Access the Azure Portal**: Navigate to your Azure Database for MySQL instance. |
| 72 | +2. **Backup Settings**: Under the `Settings` section, select `Backup and Restore`. |
| 73 | + |
| 74 | + <img width="550" alt="image" src="https://github.com/user-attachments/assets/e4aab7b9-4d16-4a5c-8817-6ccab7ec555e" /> |
| 75 | + |
| 76 | +3. **Backup Now**: Click on `Backup` and provide a custom name for the backup. |
| 77 | + |
| 78 | + <img width="550" alt="image" src="https://github.com/user-attachments/assets/756a6512-267e-47a4-a2c5-4b182f4f28bd" /> |
| 79 | + |
| 80 | + https://github.com/user-attachments/assets/0f3743ca-9098-45a4-82c9-e67593e4ffcc |
| 81 | + |
| 82 | +### Backup Storage |
| 83 | + |
| 84 | + |
| 85 | +## Disaster Recovery (DR) for MySQL on Azure |
| 86 | + |
| 87 | +<div align="center"> |
| 88 | + <h3 style="color: #4CAF50;">Total Visitors</h3> |
| 89 | + <img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/> |
| 90 | +</div> |
0 commit comments