简体   繁体   English

将SQL Server事务日志从本地服务器复制到Azure

[英]Copying SQL Server Transaction Logs from Local Server to Azure

I've Googled this a lot and can't really find anything. 我已经在Google上搜索了很多,却找不到任何东西。 The SQL Server for our main system is on-premise, not in the cloud. 我们主系统的SQL Server是本地部署,而不是在云中。 I figured out how to copy our nightly SQL Server backup to Azure. 我想出了如何将每晚的SQL Server备份复制到Azure。 I also want to copy the Transaction Logs each time they roll so if our server dies we have the transaction logs, can restore to that point and only lose at most five minutes of work, not potentially a full day. 我还想在每次滚动时复制事务日志,这样,如果我们的服务器死了,我们就拥有了事务日志,可以还原到这一点,最多只能损失五分钟的工作时间,而可能不会整整一天。

I'm really new to Azure, just starting to learn it. 我真的是Azure的新手,刚刚开始学习它。 Is there an easy way to copy the logs to Azure? 有没有简单的方法可以将日志复制到Azure? Can it be done within SSMS? 可以在SSMS中完成吗? Does someone already have a script they'd be willing to share? 有人已经拥有了他们愿意共享的脚本吗? Thanks for any tips you might have! 感谢您提供的任何提示!

Yes, there is SQL Server Backup to Azure Tool 是的,有SQL Server备份到Azure工具

Microsoft SQL Server Backup to Microsoft Azure Tool enables backup to Azure Blob Storage and encrypts and compresses SQL Server backups stored locally or in the cloud. 将Microsoft SQL Server备份到Microsoft Azure工具可以备份到Azure Blob存储,并加密和压缩存储在本地或云中的SQL Server备份。

There's also Powershell option: 还有Powershell选项:

Use PowerShell to Backup Multiple Databases to Windows Azure Blob Storage Service 使用PowerShell将多个数据库备份到Windows Azure Blob存储服务

This topic provides sample scripts that can be used to automate backups to Windows Azure Blob storage service using PowerShell cmdlets. 本主题提供了示例脚本,这些脚本可用于使用PowerShell cmdlet自动备份到Windows Azure Blob存储服务。 PowerShell support for Backup and Restore to Windows Azure Blob Storage service is introduced in SQL Server 2012 SP1 CU4. SQL Server 2012 SP1 CU4中引入了对Windows Azure Blob存储服务的备份和还原的PowerShell支持。

The parent article gives you TSQL options as well. 一篇文章还为您提供了TSQL选项。

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

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