介绍 ( Introduction )

If you are a DBA and you have one single server with SQL Server to administer, backup the database is a simple task. However, there are several companies with hundreds and some with thousands of Servers with SQL Server. To handle multiple SQL Server backups at the same time is a nightmare.

如果您是DBA,并且只有一台服务器与SQL Server一起管理,则备份数据库是一项简单的任务。 但是,有几家公司拥有成百上千的服务器,有些则拥有数千台带有SQL Server的服务器。 同时处理多个SQL Server备份是一场噩梦。

How can we backup the databases of multiple SQL Servers at the same time?

我们如何同时备份多个SQL Server的数据库?

There are several ways to backup multiple SQL Servers at the same time. In this chapter, we will show some possible solutions:

有几种方法可以同时备份多个SQL Server。 在本章中,我们将显示一些可能的解决方案:

Multiserver Administration

- 服务器管理

This option is available in SQL Server 2005 and later versions. One solution is to have a Master Server and one or more target servers. The master server distributes the job to the target servers and you need to configure the SQL Server Agent in all the Servers. We will give more details about this option in future articles.

此选项在SQL Server 2005和更高版本中可用。 一种解决方案是拥有一台主服务器和一个或多个目标服务器。 主服务器将作业分发到目标服务器,并且您需要在所有服务器中配置SQL Server代理。 我们将在以后的文章中提供有关此选项的更多详细信息。

Central Management Server

中央管理服务器

This option is available in SQL Server 2008 and later versions. You need a central Server and a Group with the connections of the other SQL Servers. You can execute T-SQL queries to all the Servers of the group at once. We will give more details about this option in future articles.

此选项在SQL Server 2008和更高版本中可用。 您需要一个中央服务器和一个具有其他SQL Server连接的组。 您可以一次对组中的所有服务器执行T-SQL查询。 我们将在以后的文章中提供有关此选项的更多详细信息。

SQL Server Integration Services (SSIS)

小号 QL 小号 erver ntegration 小号 ervices(SSIS)

You could create a custom package in SQL Server with all the Server connections. This option could be more complicated depending on your SSIS experience.

您可以在具有所有服务器连接SQL Server中创建自定义程序包。 根据您的SSIS经验,此选项可能更复杂。

PowerShell

电源外壳

You could run the query and have a list of connections in a variable. This option is even more complicated than the SSIS. However, each DBA has different needs and sometimes it is the best option (when you already have a bunch of scripts, experience and a lot of code in PowerShell).

您可以运行查询,并在变量中具有连接列表。 该选项比SSIS还要复杂。 但是,每个DBA都有不同的需求,有时这是最好的选择(当您在PowerShell中已经有很多脚本,经验和大量代码时)。

Create your own tools

创建自己的工具

You could also create your own code in .NET, Java or other programming tools. This is as difficult as the PowerShell. Especially if you want the backups to run in parallel and not sequentially. Anyway, according to the situation, it can be an option. My advice is not to reinvent the wheel. Try to use the simplest solution.

您还可以在.NET,Java或其他编程工具中创建自己的代码。 这与PowerShell一样困难。 特别是如果您希望备份并行而不是顺序运行。 无论如何,根据情况,可以选择。 我的建议是不要重新发明轮子。 尝试使用最简单的解决方案。

翻译自: https://www.sqlshack.com/how-to-run-a-backup-on-multiple-sql-servers/

如何在多个SQL Server上运行备份相关推荐

  1. aws rds监控慢sql_在AWS RDS SQL Server上的SSAS中部署表格数据库

    aws rds监控慢sql In this article, we are going to explore Analysis Service for AWS RDS SQL Server in de ...

  2. 不需xp_cmdshell支持在有注入漏洞的SQL服务器上运行CMD命令

    我的BLOG里有一篇文章介绍了关于SQL注入的基本原理和一些方法.最让人感兴趣的也许就是前面介绍的利用扩展存储过程xp_cmdshell来运行操作系统的控制台命令.这种方法也非常的简单,只需使用下面的 ...

  3. aws rds监控慢sql_在AWS RDS SQL Server上使用SSIS包

    aws rds监控慢sql In the first part of the article, Explore SQL Server Integration Services (SSIS) on AW ...

  4. aws rds监控慢sql_探索AWS RDS SQL Server上SQL Server集成服务(SSIS)

    aws rds监控慢sql In the previous article, Deploy tabular databases in SSAS on AWS RDS SQL Server, we ex ...

  5. sql多语句表值函数_构造一个特殊的多语句表函数来检查SQL Server的运行状况

    sql多语句表值函数 问题 ( The Problem ) Checking the many SQL Servers health conditions is one of the DBA basi ...

  6. 华为云数据库SQL Server 上云最佳实践

    作者:华为云数据库高级项目经理/沈志鹏 沈志鹏: 在我开讲之前要先强调一下,刚才两个引擎所说的所有优点,SQL Server都有. 开讲前问一句,有没有人用过SQL Server数据库的?很好用的人还 ...

  7. SQL Server 上云最佳实践

    内容来源:华为云社区 作者:华为云数据库高级项目经理/沈志鹏 沈志鹏: 在我开讲之前要先强调一下,刚才两个引擎所说的所有优点,SQL Server都有. 开讲前问一句,有没有人用过SQL Server ...

  8. 浅谈SQL Server内部运行机制

    原文:浅谈SQL Server内部运行机制 对于已经很熟悉T-SQL的读者,或者对于较专业的DBA来说,逻辑的增删改查,或者较复杂的SQL语句,都是非常简单的,不存在任何挑战,不值得一提,那么,SQL ...

  9. C# 学习笔记(17)操作SQL Server 上

    C# 学习笔记(17)操作SQL Server上 安装SQL Server 微软官网 https://www.microsoft.com/zh-cn/sql-server/sql-server-dow ...

最新文章

  1. 分离颜色通道(split)和多通道融合(merge)
  2. zlib和openssl相关库错误的解决
  3. 利用 CSS selector 改变悬停表格样式
  4. 二十、欢迎来到掘金量化
  5. Hbase总结(三)-Hbase与Hive的区别与联系
  6. 如果你跟夕小瑶恋爱了...(上)
  7. 题解 BZOJ1026 luogu P2657 [SCOI2009]windy数 数位DP
  8. prometheus源码阅读 - target管理
  9. MATLAB作图颜色
  10. 轮播图和导航栏:Vue和JavaScript分别实现
  11. Python基础--搬家具(面向对象)
  12. element组件的表单验证手机号
  13. 安全进化的终极猜想— 以“AI之盾”对抗“AI之矛”
  14. 2014年红帽高峰论坛随笔
  15. psj在计算机课程中什么意思,计算机运用基础教育实践
  16. ISTQB基础级备考攻略
  17. oracle数据库27043,在线考试系统(论文).doc
  18. 多测师拱墅校区肖sir___性能测试之硬件指标
  19. 破冰船是怎么破冰的?和你想到一点不一样,6米高的冰墙直接就撞
  20. 激波管的解法——有限差分方法

热门文章

  1. java集合讲解_Java集合详解
  2. maven启动web服务报错原因
  3. 【Shiro】六、Apache Shiro Session管理
  4. markdown简明使用语法
  5. 【零基础学Java】—抽象方法和抽象类(二十二)
  6. 文件上传 文件大小和类型
  7. Error:Failed at the bcrypt@3.0.4 install script.
  8. netsh winsock reset什么意思_IOS14.2rc是什么意思?ios14.2rc怎么样?[多图]-手机资讯...
  9. ipad air屏幕不能滑动,无法解锁怎么处理
  10. 你三十岁有什么巨大变化吗?