MsDeploy 3.5 自动备份创建缺少 Contents 目录的 zip 文件 [英] MsDeploy 3.5 automatic backup creates zip files lacking the Contents directory

查看:89
本文介绍了MsDeploy 3.5 自动备份创建缺少 Contents 目录的 zip 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Web Deploy 3.5 工具来部署我们的 .NET 4.0 WCF Web 服务(在 PackageWeb nuget 的帮助下).我们有两个Windows Server 2008-R2"服务器用于测试驱动 Web 部署:QA 和 Staging.两台服务器都配置为在部署期间创建最多 20 个自动备份(每个应用程序).出于某种原因,我们的临时服务器会生成仅包含两个文件的备份 ZIP 文件:

I am using the Web Deploy 3.5 tool to deploy our .NET 4.0 WCF web service (with the help of PackageWeb nuget). We have two "Windows Server 2008-R2" servers that are being used to test drive Web Deploy: QA and Staging. Both servers are configured to create up to 20 automatic backups (per application) during deployments. For some reason our Staging server generates backup ZIP files that only contain two files:

  • 归档.xml
  • systemInfo.xml

内容"目录不存在,Windows 事件日志中没有记录错误.更糟糕的是,服务器被配置为在备份失败时继续运行(continueSyncOnBackupFailure="false"),但是这个明显的添加 Contents 目录的失败似乎不被工具视为错误,所以该工具愉快地继续部署包.

The "Contents" directory is not there and there is no error being logged in Windows Event Logs. What's worse is that the servers are configured to not continue up on backup failure (continueSyncOnBackupFailure="false") but this obvious failure to add the Contents directory is seemingly not regarded as an error by the tool, so the tool happily continues to deploy the package.

此外,archive.xml 有一些缺陷,因为它只包含以下信息:

Also, the archive.xml is somewhat deficient as it contains just this info:

<?xml version="1.0" encoding="UTF-8"?>
<MSDeploy.Backup/>

我的 PC 和两台服务器都通过 Platform Installer 安装了 Web Deploy 3.5.部署用户帐户是一个管理帐户(QA 服务器上的 Active Directory 用户和 Staging 上的本地用户).QA服务器还安装了3.5之前的Web部署工具2.1".

My PC and both servers have Web Deploy 3.5 installed via Platform Installer. The deployment user account is an administrative account (Active Directory user on the QA server and a local user on Staging). The QA server also has "Web Deployment Tool 2.1" installed before 3.5.

如果没有有意义的日志记录和丰富的手册,就没什么可看的.我希望这是过去有人解决过的问题.非常感谢!

Without a meaningful logging and abundant manuals there is not much to go by. I am hoping that this is something someone had resolved in the past. Thanks a lot!

推荐答案

我最近有这个,我查了一下我命令中的每个参数,发现问题是我在命令中有这个:

I recently had this, I looked up each of the parameters in my command and found the problem was that I had this in the command:

-disableLink:ContentExtension

这是关闭正在备份的内容.

This was turning off the Content being backed up.

您可以从 Technet 阅读有关各种参数的更多信息:http://technet.microsoft.com/en-gb/library/dd569089%28v=ws.10%29.aspx

You can read more about the various parameters from Technet: http://technet.microsoft.com/en-gb/library/dd569089%28v=ws.10%29.aspx

这篇关于MsDeploy 3.5 自动备份创建缺少 Contents 目录的 zip 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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