如何安全地将所有IIS设置从一台服务器导出到另一台服务器? [英] How to safetly export all IIS settings from one server to another?

查看:207
本文介绍了如何安全地将所有IIS设置从一台服务器导出到另一台服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一个虚拟机来克隆我们的webapp的生产实例中使用的一个服务器,以便我们可以对其进行部署测试。

I am trying to build a virtual machine that clones one of the servers used in production instances of our webapp so that we can do deployment testing on it.

I已经安装了所有必需的文件,安装了IIS,数据库启动并运行。在我看来,剩下的就是将所有IIS设置从生产环境复制到虚拟机。在过去,我在类似的情况下只需备份元数据库,找到文件,将其移动到新机器,然后恢复。然而,这是一个更困难的场景,当我尝试这样做时,目标机器告诉我元数据库文件具有无效签名。

I have gotten all the necessary files over, IIS installed, the database up and running. To my eye all that remains is to copy all the IIS settings from a production environment to the virtual machine. In the past I have in similar situations simply backed up the metabase, found the file, moved it to the new machine, and restored. This is a more difficult scenario however and when I try to do this the target machine tells me the metabase file has "invalid signature".

搜索一段时间我发现对此的建议是使用iiscnfg.vbs / export,然而,建议使用 iiscnfg.vbs / copy (虽然该链接指向自身)。

Googling around for a while I find the the recommendation for this is to use iiscnfg.vbs /export however, the msdn page on this recommends using iiscnfg.vbs /copy (though the link points to itself).

因此,按照所有复制步骤,我得到以下输出:

So following all the steps for copy, I get the following output:

C:\WINDOWS\system32>cscript.exe iiscnfg.vbs /copy /ts 208.10.202.61 /tu wmydomain\admin /tp mypassword
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Backing up server 127.0.0.1
Backup complete.
Mapping local drive E: to admin share on server 127.0.0.1
Mapping local drive F: to admin share on server 208.10.202.61

除了在目标计算机上似乎没有任何改变之外,它看起来不错。是什么赋予了?还有另一种方法吗?

Which looks good, except that on the target computer it would seem that nothing has changed. What gives? Is there another way to do this?

推荐答案

您可以使用 Web部署工具,用于在本地和远程IIS服务器之间同步网站。 (它也可以从IIS 6转到IIS 7)

You can use the Web Deployment Tool to sync websites between a local and remote IIS server. (It also works to go to IIS 7 from IIS 6)

这篇关于如何安全地将所有IIS设置从一台服务器导出到另一台服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆