简体   繁体   English

Azure 数据库备份到本地存储

[英]Azure Database backup to Local Storage

I build a web program and hosted it on an Azure Virtual Machine.我构建了一个 Web 程序并将其托管在 Azure 虚拟机上。 I'm using the database as Azure Database.我将数据库用作 Azure 数据库。

This is the first time I hosted a web application all by programing and finalization and did it by self-studies.这是我第一次通过编程和完成来托管 Web 应用程序,并通过自学完成。

So I want to know when I test it on a local server I used to run a scheduled script that took a daily backup of my database.所以我想知道当我在本地服务器上测试它时,我曾经运行一个计划脚本,该脚本每天备份我的数据库。 But when I hosted it on the Azure Database, I couldn't find a way to get a backup of my database.但是当我将它托管在 Azure 数据库上时,我找不到获取数据库备份的方法。 ( It has an option but I have to buy another storage to create a backup. So it costs a additional fee) (它有一个选项,但我必须购买另一个存储来创建备份。因此需要额外付费)

Is there any way to get a database backup without paying the additional cost?有什么方法可以在不支付额外费用的情况下获得数据库备份? I can connect to the database using the credentials in my local SQL server.我可以使用本地 SQL 服务器中的凭据连接到数据库。 I tried right-clicking the database name and tried to get a backup but the option wasn't there.我尝试右键单击数据库名称并尝试获取备份,但该选项不存在。 Then I tried to get it by generating scripts and selecting the option, data, and schema.然后我尝试通过生成脚本并选择选项、数据和模式来获取它。 It fails to take the all data it currently has.它无法获取当前拥有的所有数据。

Want to know how you guys doing this.想知道你们是怎么做到的。 And another thing, The reason why I used a Virtual machine to host my web application and used Azure database as the database is, that I tried installing the SQL Server on the Virtual machine.还有一件事,我使用虚拟机来托管我的 Web 应用程序并使用 Azure 数据库作为数据库的原因是,我尝试在虚拟机上安装 SQL Server。 But from the application, I couldn't connect to the created server on the VM.但是从应用程序中,我无法连接到 VM 上创建的服务器。 Followed a few tutorials but couldn't figure it out.遵循了一些教程,但无法弄清楚。 So if anyone knows how to do it, please help me to solve it because then I can re-write the auto backup script and get the backup on the VM.因此,如果有人知道该怎么做,请帮我解决它,因为这样我就可以重新编写自动备份脚本并在 VM 上获取备份。

Waiting for a better solution from the experts.等待专家提供更好的解决方案。

Is there any way to get a database backup without paying the additional cost?有什么方法可以在不支付额外费用的情况下获得数据库备份?

You can Export the database to a BACPAC file您可以将数据库导出到 BACPAC 文件

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

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