如何安全地将所有 IIS 设置从一台服务器导出到另一台服务器?

发布于 2024-07-13 21:14:41 字数 1153 浏览 5 评论 0原文

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

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

谷歌搜索了一段时间,我发现建议使用 iiscnfg.vbs /export 但是, 建议使用 iiscnfg.vbs /copy (尽管链接指向其自身)。

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

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

看起来不错,但在目标计算机上似乎没有任何变化。 是什么赋予了? 还有其他方法可以做到这一点吗?

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 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".

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你是我的挚爱i 2024-07-20 21:14:41

您可以使用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)

掀纱窥君容 2024-07-20 21:14:41

有许多实用程序允许您从正在运行的服务器创建虚拟机。 例如,这是来自 VMWare 的 (http://www.vmware.com/products/converter/ )。 我发现的虚拟化物理机的最简单方法。

如果您要在同一网络/域上运行,则需要更改计算机的 sid。 如果我没记错的话,该应用程序会为你做这件事。 这绝对值得一试。

There are many utilities which allow you to create virtual machines from running servers. For example here is the one from VMWare (http://www.vmware.com/products/converter/). Easiest way I have found for virtualizing physical machines.

If you are going to run in on the same network/domain, you will need to change the sid of the machine. If I remember correctly, the application will do it for you. It is definitely worth checking out.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文