简体   繁体   English

Azure SQL数据库下载.bacpac

[英]Azure SQL Database download .bacpac

I want to export my current database backups from Azure to my local on-premise environment. 我想将当前的数据库备份从Azure导出到本地本地环境。 I have created a .bacpac file from the Azure SQL Database and stored this within my Azure Blob Storage. 我已经从Azure SQL数据库创建了一个.bacpac文件,并将其存储在我的Azure Blob存储中。

However, whenever I download my backup it is always downloaded as a .ZIP file and not a .bacpac file. 但是,每当我下载备份时,它总是以.ZIP文件而不是.bacpac文件下载。 How can I ensure that I download a .bacpac file? 如何确保下载.bacpac文件?

To export your SQL Database from Azure , navigate to the Azure portal for your SQL Database. 要从Azure导出SQL数据库 ,请导航至SQL数据库的Azure门户。 You should be able to simply click the 'export' button at the top of the 'Overview' blade. 您应该可以简单地单击“概述”边栏顶部的“导出”按钮。

Azure SQL数据库概述刀片

On the next blade, you will then need to specify 然后,在下一个刀片上,您需要指定

  • The BACPAC filename BACPAC文件名
  • The Azure storage account Azure存储帐户
  • The container for export, and 出口容器,以及
  • The credentials to connect to the source database 连接到源数据库的凭据

You can then see the progres under "Import/Export" history on the 'Overview' blade towards the bottom. 然后,您可以在“概述”边栏底部的“导入/导出”历史记录下看到进度。

When you are prompted to save the file locally, simply change the extension from .ZIP to .bacpac. 当提示您将文件保存在本地时,只需将扩展名从.ZIP更改为.bacpac。

A .bacpac file is simply a ZIP file (with a .bacpac extension and contains the metadata and data from the SQL Server database). .bacpac文件只是一个ZIP文件 (扩展名为.bacpac,其中包含来自SQL Server数据库的元数据和数据)。

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

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