简体   繁体   English

自动备份 Azure SQL 数据库

[英]Automatic backup Azure SQL DataBase

I've configured the retention policy in 'Manage Backups' for my Azure SQL Server but nothing is appearing under 'Available Backups'.我已经在我的 Azure SQL Server 的“管理备份”中配置了保留策略,但“可用备份”下没有显示任何内容。 Does there need to be an associated storage account?是否需要关联存储帐户? If so, how do I set it up?如果是这样,我该如何设置?

From Azure's doc it is known that the automatic backups (full, differential and transaction log) are possible.从 Azure 的文档中得知,自动备份(完整、差异和事务日志)是可能的。 And it is possible to configure retention period for these backups.并且可以为这些备份配置保留期。 The main question is where these backups are stored (from documentation by default within RA-GRS Standard blob storage)?主要问题是这些备份存储在哪里(默认情况下来自 RA-GRS 标准 blob 存储中的文档)? and whether it is possible to change storage account and how to access to standard storage account with backups?是否可以更改存储帐户以及如何使用备份访问标准存储帐户?

Thanks in advance.提前致谢。

Automatic backups are part of Azure SQL Database service and are managed by Azure.自动备份是 Azure SQL 数据库服务的一部分,由 Azure 管理。 You cannot change where these backups are stored, that is managed by Azure.您无法更改这些备份的存储位置,这些备份由 Azure 管理。 You cannot access those backups and copy them to another storage account, and you cannot manage them.您无法访问这些备份并将它们复制到另一个存储帐户,也无法管理它们。

You can use PowerShell Get-AzureRmSqlDatabaseRestorePoints to get the earliest possible restore point for the database based on the automated backup service.您可以使用 PowerShell Get-AzureRmSqlDatabaseRestorePoints 获取基于自动备份服务的数据库的最早可能还原点。

Get-AzureRmSqlDatabaseRestorePoints -ResourceGroupName "resname" `
    -ServerName "yourservername" -DatabaseName "yourDBName"

With automatic backups, full database backups are created weekly, differential database backups are generally created every 12 hours, and transaction log backups are generally created every 5 - 10 minutes, with the frequency based on the performance level and amount of database activity.对于自动备份,每周创建一次完整数据库备份,通常每 12 小时创建一次差异数据库备份,通常每 5 - 10 分钟创建一次事务日志备份,频率取决于性能级别和数据库活动量。 The first full backup is scheduled immediately after a database is created.第一次完整备份是在创建数据库后立即安排的。 It usually completes within 30 minutes, but it can take longer when the database is of a significant size.它通常在 30 分钟内完成,但当数据库很大时可能需要更长的时间。

If you want to have control over backups, you want to have greater retention period, then you can configure long term backups o export bacpacs of your database to an storage account as explained here .如果您想控制备份,想要更长的保留期,那么您可以配置长期备份或将数据库的 bacpac 导出到存储帐户,如此所述。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM