Skip to content

Commit b3af1a0

Browse files
authored
Merge pull request #116732 from shkale-msft/patch-2
Added 1 day retention period details
2 parents 9d22ce3 + 9b34732 commit b3af1a0

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

articles/azure-sql/database/automated-backups-overview.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@ You can try some of these operations by using the following examples:
4343

4444
| | The Azure portal | Azure PowerShell |
4545
|---|---|---|
46-
| Change backup retention | [SQL Database](automated-backups-overview.md?tabs=managed-instance#change-the-pitr-backup-retention-period-by-using-the-azure-portal) <br/> [SQL Managed Instance](automated-backups-overview.md?tabs=managed-instance#change-the-pitr-backup-retention-period-by-using-the-azure-portal) | [SQL Database](automated-backups-overview.md#change-the-pitr-backup-retention-period-by-using-powershell) <br/>[SQL Managed Instance](https://docs.microsoft.com/powershell/module/az.sql/set-azsqlinstancedatabasebackupshorttermretentionpolicy) |
47-
| Change long-term backup retention | [SQL Database](long-term-backup-retention-configure.md#configure-long-term-retention-policies)<br/>SQL Managed Instance - N/A | [SQL Database](long-term-backup-retention-configure.md)<br/>SQL Managed Instance - N/A |
48-
| Restore a database from a point in time | [SQL Database](recovery-using-backups.md#point-in-time-restore) | [SQL Database](https://docs.microsoft.com/powershell/module/az.sql/restore-azsqldatabase) <br/> [SQL Managed Instance](https://docs.microsoft.com/powershell/module/az.sql/restore-azsqlinstancedatabase) |
49-
| Restore a deleted database | [SQL Database](recovery-using-backups.md) | [SQL Database](https://docs.microsoft.com/powershell/module/az.sql/get-azsqldeleteddatabasebackup) <br/> [SQL Managed Instance](https://docs.microsoft.com/powershell/module/az.sql/get-azsqldeletedinstancedatabasebackup)|
50-
| Restore a database from Azure Blob storage | SQL Database - N/A <br/>SQL Managed Instance - N/A | SQL Database - N/A <br/>[SQL Managed Instance](https://docs.microsoft.com/azure/sql-database/sql-database-managed-instance-get-started-restore) |
46+
| Change backup retention | [Single database](automated-backups-overview.md?tabs=managed-instance#change-the-pitr-backup-retention-period-by-using-the-azure-portal) <br/> [Managed instance](automated-backups-overview.md?tabs=managed-instance#change-the-pitr-backup-retention-period-by-using-the-azure-portal) | [Single database](automated-backups-overview.md#change-the-pitr-backup-retention-period-by-using-powershell) <br/>[Managed instance](https://docs.microsoft.com/powershell/module/az.sql/set-azsqlinstancedatabasebackupshorttermretentionpolicy) |
47+
| Change long-term backup retention | [Single database](long-term-backup-retention-configure.md#configure-long-term-retention-policies)<br/>Managed instance - N/A | [Single database](long-term-backup-retention-configure.md)<br/>Managed instance - N/A |
48+
| Restore a database from a point in time | [Single database](recovery-using-backups.md#point-in-time-restore) | [Single database](https://docs.microsoft.com/powershell/module/az.sql/restore-azsqldatabase) <br/> [Managed instance](https://docs.microsoft.com/powershell/module/az.sql/restore-azsqlinstancedatabase) |
49+
| Restore a deleted database | [Single database](recovery-using-backups.md) | [Single database](https://docs.microsoft.com/powershell/module/az.sql/get-azsqldeleteddatabasebackup) <br/> [Managed instance](https://docs.microsoft.com/powershell/module/az.sql/get-azsqldeletedinstancedatabasebackup)|
50+
| Restore a database from Azure Blob storage | Single database - N/A <br/>Managed instance - N/A | Single database - N/A <br/>[Managed instance](https://docs.microsoft.com/azure/sql-database/sql-database-managed-instance-get-started-restore) |
5151

5252
## Backup frequency
5353

5454
### Point-in-time restore
5555

5656
SQL Database and SQL Managed Instance support self-service for point-in-time restore (PITR) by automatically creating full backups, differential backups, and transaction log backups. Full database backups are created weekly, and differential database backups are generally created every 12 hours. Transaction log backups are generally created every 5 to 10 minutes. The frequency of transaction log backups is based on the compute size and the amount of database activity.
5757

58-
The first full backup is scheduled immediately after a database is created. This backup usually completes within 30 minutes, but it can take longer when the database is large. For example, the initial backup can take longer on a restored database or a database copy. After the first full backup, all further backups are scheduled automatically and managed silently in the background. The exact timing of all database backups is determined by SQL Database and SQL Managed Instance as it balances the overall system workload. You can't change or disable the backup jobs.
58+
The first full backup is scheduled immediately after a database is created. This backup usually completes within 30 minutes, but it can take longer when the database is large. For example, the initial backup can take longer on a restored database or a database copy. After the first full backup, all further backups are scheduled automatically and managed silently in the background. The exact timing of all database backups is determined by the SQL Database or SQL Managed Instance service as it balances the overall system workload. You can't change or disable the backup jobs.
5959

6060
### Default backup retention period
6161

@@ -73,20 +73,20 @@ For more information about LTR, see [Long-term backup retention](long-term-reten
7373

7474
## Backup storage consumption
7575

76-
For single databases in SQL Database and managed instances in SQL Managed Instance, this equation is used to calculate the total backup storage usage:
76+
For single databases and managed instances, this equation is used to calculate the total backup storage usage:
7777

7878
`Total backup storage size = (size of full backups + size of differential backups + size of log backups) – database size`
7979

80-
For pooled databases in SQL Database, the total backup storage size is aggregated at the pool level and is calculated as follows:
80+
For pooled databases, the total backup storage size is aggregated at the pool level and is calculated as follows:
8181

8282
`Total backup storage size = (total size of all full backups + total size of all differential backups + total size of all log backups) - allocated pool data storage`
8383

8484
Backups that occur before the retention period are automatically purged based on their timestamp. Because differential backups and log backups require an earlier full backup to be useful, they're purged together in weekly chunks.
8585

8686
SQL Database and SQL Managed Instance compute your total in-retention backup storage as a cumulative value. Every hour, this value is reported to the Azure billing pipeline, which is responsible for aggregating this hourly usage to calculate your consumption at the end of each month. After the database is dropped, consumption decreases as backups age. After backups become older than the retention period, billing stops.
87-
87+
8888
> [!IMPORTANT]
89-
> Backups of a database are retained for the specified retention period, even if the database has been dropped. While dropping and re-creating a database can frequently save on storage and compute costs, it might increase backup storage costs because Microsoft retains a backup for the specified retention period for each dropped database, every time it's dropped.
89+
> Backups of a database are retained for the specified retention period, even if the database has been dropped. While dropping and re-creating a database can frequently save on storage and compute costs, it might increase backup storage costs because Microsoft retains a backup for the specified retention period for each dropped database, every time it's dropped.
9090
9191
### Monitor consumption
9292

@@ -136,18 +136,21 @@ Add a filter for **Service name**, and then select **sql database** in the drop-
136136

137137
## Backup retention
138138

139-
All databases in Microsoft Azure SQL have a default backup retention period of 7 days. You can [change the backup retention period](#change-the-pitr-backup-retention-period) to as long as 35 days.
139+
All databases in Microsoft Azure SQL have a default backup retention period of 7 days. You can [change the backup retention period](#change-the-pitr-backup-retention-period) to anywhere between 1 - 35 days.
140140

141141
If you delete a database, Azure keeps the backups in the same way it would for an online database. For example, if you delete a Basic database that has a retention period of seven days, a backup that's four days old is saved for three more days.
142142

143143
If you need to keep the backups for longer than the maximum retention period, you can modify the backup properties to add one or more long-term retention periods to your database. For more information, see [Long-term retention](long-term-retention-overview.md).
144144

145145
> [!IMPORTANT]
146-
> If you delete the server or managed instance, all databases managed by that server or managed instance are also deleted. They can't be recovered. You can't restore a deleted server or managed instance. But if you configured long-term retention for SQL Database, the backups for the databases with LTR won't be deleted, and these databases can be restored.
146+
> Setting up backup retention period to 1 day (or to any value between 1 - 7) is only supported via PowerShell or REST API at this time. Minimum required version of Az.SQL module is v2.6.0, or it can be executed through CloudShell which always has the latest Az.SQL version.
147+
148+
> [!IMPORTANT]
149+
> If you delete the server or managed instance, all databases managed by that server or managed instance are also deleted. They can't be recovered. You can't restore a deleted server or managed instance. But if you configured long-term retention for SQL Database or manged instance, the backups for the databases with LTR won't be deleted, and these databases can be restored.
147150
148151
## Encrypted backups
149152

150-
If your database is encrypted with TDE, backups are automatically encrypted at rest, including LTR backups. When TDE is enabled for SQL Database or SQL Managed Instance, backups are also encrypted. All new databases in Azure SQL are configured with TDE enabled by default. For more information on TDE, see [Transparent Data Encryption with SQL Database and SQL Managed Instance](/sql/relational-databases/security/encryption/transparent-data-encryption-azure-sql).
153+
If your database is encrypted with TDE, backups are automatically encrypted at rest, including LTR backups. When TDE is enabled for SQL Database or SQL Managed Instance, backups are also encrypted. All new databases in Azure SQL are configured with TDE enabled by default. For more information on TDE, see [Transparent Data Encryption with SQL Database & SQL Managed Instance](/sql/relational-databases/security/encryption/transparent-data-encryption-azure-sql).
151154

152155
## Backup integrity
153156

0 commit comments

Comments
 (0)