Home Database Mysql Tutorial 简化SQL Server备份和还原到Windows Azure

简化SQL Server备份和还原到Windows Azure

Jun 07, 2016 pm 05:54 PM
sql server backup reduction

SQL Server 2012 SP1 Cumulative Update 2有一项新功能,可以简化当从户内平台SQL Server到 Windows Azure 时的SQL Server 数据库备份和还原能力。现在,您可以直接使用 SQL Server Native Backup创建备份到Windows Azure Storage。请参阅下面的内容来获得新

SQL Server 2012 SP1 Cumulative Update 2有一项新功能,可以简化当从户内平台SQL Server到 Windows Azure 时的SQL Server 备份和还原能力。现在,您可以直接使用 SQL Server Native Backup创建备份到Windows Azure Storage。请参阅下面的内容来获得新功能的简介,点击链接了解详细。

要更新,请转到。

概述:

除了硬盘和磁带,现在您可以使用 SQL Server 的本机备份功能来备份您的 SQL Server Database到 Windows Azure Blob 存储服务。在此版本中,您可以使用 T-SQL 和SMO备份到Windows Azure Blob存储。在SQL Server 户内实例上的SQL Server Databases或在宿主环境中,如运行在 Windows Azure VMs上的 SQL Server 实例都可以利用此功能。

好处:

  • 灵活、 可靠和无限的线下存储来提高灾难恢复: 将您的备份存储在 Windows Azure Blob 服务上是一种方便、 灵活且易于访问线下的选择。创建您的 SQL Server 备份的线下存储就像修改您现有的脚本/作业一样容易。线下存储通常距正式数据库的位置足够远,以防止单一的灾难可能会把线下和正式数据库的位置都影响到。您还可以还原备份到运行在 Windows Azure Virtual Machine上的SQL Server Instance,用于户内数据库的灾难恢复。万一灾难发生了,选择geo replicate Blob存储,将产生一个额外的保护层,该保护层可以影响整个区域。另外,随时随地您都可以很容易地读取备份来进行恢复。
  • 备份存档: Windows Azure Blob Storage服务提供了更好的一个办法为那些经常使用磁带来存档备份的用户。磁带存储可能需要物理上传输到一个外部设施并且还要保护这些媒体不受破坏。在 Windows Azure Blob Storage上存储备份为您提供了一种即时、 高度可用和持久的存档方法。
  • 没有硬件管理的开销: 使用Windows Azure存储服务就没有了硬件的管理开销。Windows Azure 服务管理硬件,并为geo-replication保证冗余度和提供针对硬件故障的保护。
  • 目前,通过创建附带的磁盘就可以将运行在 Windows Azure Virtual Machine的 SQL Server 实例备份到 Windows Azure Blob 存储服务上。然而,可以附加到 Windows Azure 虚拟机的磁盘数量是有限制的。最大实例不超过16 个。如果直接备份到 Windows Azure Blob Storage,可以不拘于最大16 个磁盘的限制。
  • 此外,存储在 Windows Azure Blob 存储服务中的备份文件可以直接提供给户内 SQL Server或其他运行在 Windows Azure Virtual Machine上的SQL Server,不需要数据库连接/分离或下载再附加 VHD的操作了。
  • 成本效益: 只需支付所用的服务。是线下备份存档节省成本的一种方法。

Windows Azure pricing calculator可以帮助您估计成本。

存储: 收费会依据您使用的空间,的数量和冗余级别而定价。

数据传输:入站数据传输到 Windows Azure是免费的。出站传输根据带宽使用情况,并根据累进特定区域的量而收费。

它是如何工作的:

备份到 Windows Azure Storage设计得像一个备份设备(磁盘/磁带)。使用 Microsoft Virtual Backup Device Interface (VDI),Windows Azure Blob存储被编码成"虚拟备份设备",用于访问 Blob 存储的 URL 格式则被视为一种设备。支持 Azure 存储作为目标设备的主要原因是它提供了一致和天衣无缝的的备份和还原的过程,类似于我们现在的磁盘和磁带。

当备份或还原过程被调用,并指定 Windows Azure Blob 存储使用 URL"设备类型"时,引擎就会调用VDI 客户端进程,这也是该特征的一部分。备份数据被发送到 VDI 客户端进程,并再被发送到 Windows Azure Blob 存储。

如上所述,URL 像我们现在使用的备份设备一样,但它并不是一个物理设备,所以有一些限制。

如何使用它

要写一个Windows Azure Blob 存储的备份,您必须首先创建一个 Windows Azure Storage帐户,再创建一个 SQL Server Credential保存存储帐户的身份验证信息。使用TRANSACT-SQL 或SMO就可以发出备份和还原命令了。

下面的 TRANSACT-SQL 示例介绍了创建凭据、 做完整的数据库备份和从完整数据库备份还原数据库的过程。

创建凭据

下面的示例演示了如何创建一个存储 Windows Azure Storage身份验证信息的凭据。

备份完整的数据库

下面的示例演示了如何备份 AdventureWorks2012 数据库到 Windows Azure Blob 存储服务上。

还原数据库

若要还原完整的数据库备份,请按以下步骤操作。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to backup Google Chrome extensions How to backup Google Chrome extensions Jan 30, 2024 pm 12:36 PM

How to backup Google Chrome extension? For most Google Chrome users, more or less plug-ins are installed during daily use. The existence of plug-ins can improve our usage experience. When we reinstall the system or browser, these plug-ins cannot be retained, and it is troublesome to download and install them again. So is there a way to back up the currently installed plug-ins? Here’s how to do it. The tutorial method of backing up chrome plug-ins first opens Google Chrome, click the menu in the upper right corner, and select More Tools - Extensions. Click Package extension above the extensions page. In C:UsersAdministratorAppDataLocalGoogleChromeUserDataDe

How to use MySQL backup and restore in PHP? How to use MySQL backup and restore in PHP? Jun 03, 2024 pm 12:19 PM

Backing up and restoring a MySQL database in PHP can be achieved by following these steps: Back up the database: Use the mysqldump command to dump the database into a SQL file. Restore database: Use the mysql command to restore the database from SQL files.

How to delete startup backup in Windows 11's File Explorer How to delete startup backup in Windows 11's File Explorer Feb 18, 2024 pm 05:40 PM

If you wish to hide the "Start Backup" option in Windows 11's File Explorer, here's what you can do. There are several ways to disable or hide the startup backup option in File Explorer, and we'll briefly list some methods to help you accomplish this task quickly. Before you get started, you need to understand that this option is closely tied to OneDrive. Once you open a library folder (such as Document, Pictures, Music, etc.), it will immediately appear in the file explorer's path. How to delete startup backup in Windows 11’s File Explorer To delete startup backup in Windows 11’s File Explorer, follow the steps below

How to restore the deleted hosts file How to restore the deleted hosts file Feb 22, 2024 pm 10:48 PM

Title: How to restore the hosts file after deletion Summary: The hosts file is a very important file in the operating system and is used to map domain names to IP addresses. If you accidentally delete the hosts file, you may be unable to access certain websites or have other network problems. This article will introduce how to recover accidentally deleted hosts file in Windows and Mac operating systems. Text: 1. Restore hosts file in Windows operating system. Hosts file in Windows operating system

How to install, uninstall, and reset Windows server backup How to install, uninstall, and reset Windows server backup Mar 06, 2024 am 10:37 AM

WindowsServerBackup is a function that comes with the WindowsServer operating system, designed to help users protect important data and system configurations, and provide complete backup and recovery solutions for small, medium and enterprise-level enterprises. Only users running Server2022 and higher can use this feature. In this article, we will explain how to install, uninstall or reset WindowsServerBackup. How to Reset Windows Server Backup If you are experiencing problems with your server backup, the backup is taking too long, or you are unable to access stored files, then you may consider resetting your Windows Server backup settings. To reset Windows

How to backup system with ghost-ghost backup tutorial How to backup system with ghost-ghost backup tutorial Mar 06, 2024 pm 04:30 PM

Recently, many friends have asked the editor how to back up the system with ghost. Next, let us learn the tutorial on how to back up the system with ghost. I hope it can help everyone. 1. After running Ghost, click "OK", as shown in the figure. 2. Click "Local" → "Partition" → "ToImage" (meaning: local → partition → to image file), as shown in the figure. 3. The Select Local Hard Disk window appears, click the hard disk where the partition to be backed up is located, and then click "OK", as shown in the figure. 4. The Select Source Partition window appears (the source partition is the partition you want to back up), click on the partition where the system is located (usually Zone 1, be sure to get it right), and then click "OK", as shown in the figure. 5. Play at this time

How to perform system backup and restore on Kirin OS? How to perform system backup and restore on Kirin OS? Aug 07, 2023 pm 02:22 PM

How to perform system backup and restore on Kirin OS? Kirin operating system is an open source operating system independently developed in China and is widely used in various scenarios. System backup and recovery is a very important task when using Kirin operating system. Backup systems can prevent data loss due to malfunctions or misoperations, while system recovery can quickly restore normal functionality in the event of a system crash. This article will introduce in detail how to perform system backup and recovery on Kirin operating system, and attach relevant code examples. Backing Up the System In order to backup the entire system we can

Tutorial: How to restore the Win7 taskbar to the bottom Tutorial: How to restore the Win7 taskbar to the bottom Jan 02, 2024 pm 09:05 PM

When we use win7 system, sometimes we accidentally drag the taskbar to the left or right, which looks very uncomfortable and affects the use. In fact, the restoration method is very simple. Just drag it back or change the settings in the properties. Let’s take a look. Restore the win7 taskbar to the following tutorial method one: 1. First, right-click the taskbar and make sure the taskbar is not locked. If it is locked, click Unlock. 2. Left-click an empty space on the taskbar, hold down the left mouse button, and drag downwards to drag the taskbar back. 3. It should be noted that due to the screen size, dragging the taskbar will change the size of the taskbar. Move the mouse to the edge of the taskbar and drag up or down to set the appropriate size. square

See all articles