如何在Windows Azure中创建备份

时间:2013-03-06 23:29:55

标签: azure azure-sql-database azure-storage

我试图创建一个WindowsAzure备份,但我没有成功,因为只创建没有数据的表结构。这是我遵循的程序:

1.Select the database you want to back up in new portal of windows azure https://manage.windowsazure.com
2.In the footer you will have an option to import/export. Click export. This opens a modal popup. Select the storage account you want to use and type in a appropriate name to save the *.bacpac file.
3.Once the file is saved to storage, download it to local, open sql server 2012 management studio. Select the database server. Right click on it and in the context menu you will find Import Data-Tier Application. Select the bacpac file from you local and follow the settings. 

如何创建备份但又保存数据?

3 个答案:

答案 0 :(得分:3)

CREATE DATABASE XXXXXX AS COPY OF YYYYY

MSDN链接有关于您可以执行此操作的所有不同方法的完整文章,以上只是其中之一。 LMGTFY:http://msdn.microsoft.com/en-us/library/windowsazure/ff951624.aspx

答案 1 :(得分:0)

除了T-SQL脚本方法之外,还有一些方法,Red Gate提供的两种方法是:

  • SQL Azure Backup Application - 一个免费的桌面应用程序,以及一个命令行工具,允许您将SQL Azure数据库的完整备份传输到本地环境或您有权访问的其他环境。 / LI>
  • SQL Azure Backup Hosted - 托管解决方案变体,具有许多功能

答案 2 :(得分:0)

微软最近做了一个非常全面的博客,内容涵盖了备份SQL Azure数据库的所有方法。

http://blogs.msdn.com/b/windows_azure_technical_support_wats_team/archive/2013/03/04/different-ways-to-backup-your-windows-azure-sql-database.aspx

就这样你知道 - 我开发了第7号选项:)