The cost for Azure MySQL Flexible Server Backup retention period

MOTECH M0525 20 Reputation points
2025-08-19T04:41:52.1666667+00:00

The default backup retention period for MySQL Flexible Server is 7 days. Does it use differential backups, incremental snapshots, or full backups every day?

For example, if I have 300 GB of MySQL storage space, only 240 GB is used, and the daily data increment is 2 GB. How is the space required for 7 days of backup retention calculated? Is it 240 GB x 7 days, or 240 GB + (2 GB x 7 days)?

Azure Database for MySQL
0 comments No comments
{count} votes

Answer accepted by question author
  1. Kalyani Kondavaradala 4,600 Reputation points Microsoft External Staff Moderator
    2025-08-19T07:06:19.3833333+00:00

    Hi @MOTECH M0525,

    Thanks for posting your query on Microsoft Q&A!

    Yes, you are correct the default backup retention period is 7 days for MySQL Flexible server.

    if you have provisioned a server with 250 GB of storage, you have 250 GB of storage available for server backups at no additional charge. If the daily backup usage is 25GB, then you can have up to 10 days of free backup storage. Storage consumed for backups more than 250 GB is charged as per the pricing model.

    User's image

    Please refer the below Microsoft document for more details:

    https://docs.azure.cn/en-us/mysql/flexible-server/concepts-backup-restore

    Please let us know if you have further queries on this.

    Hopes this information helps you, if it is please Upvote and Accept Answer so that it will help other community members reading this thread.

    Thanks,

    Kalyani

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Adharsh Santhanam 7,885 Reputation points Volunteer Moderator
    2025-08-19T06:44:40.9033333+00:00

    Hello MOTECH M0525, Azure MySQL Flexible Server uses snapshot-based backups which are stored in locally redundant storage by default. This comprises of daily full snapshot backups of the data files + transaction log backups every 5 minutes.

    Extending this discussion to your specific, let's say your daily snapshot is 240 GB and you retain for 7 days, then, your snapshot storage is 240*7 = 1680 GB

    Now, you need to add the transaction log backup (let's say 1 GB) for the same 7 days period to this 1680 GB which will result in 1680 + (1*7) = 1687 GB.

    Your final backup storage cost is overage beyond the provisioned storage. In this case, it'll be 1687-300=1387 GB.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.