简体   繁体   中英

MSDeploy skip delete not working

I want to skip the deletion of the files on the \\log folder on a web application running on a IIS virtual path: 'website\\v2\\service'

I tried the command line:

"msdeploy.exe" -source:package='Package.zip' -dest:auto,computerName='https://host   /MsDeploy.axd',userName='####',password='####',authtype='Basic',includeAcls='False' -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -skip:skipaction='Delete',objectname='dirPath',absolutepath='\\log' -setParamFile:"SetParameters.xml"   -allowUntrusted

But the files on website\\v2\\service\\log folder are still being deleted.

检查在操作设置-setParamFile:"SetParameters.xml"指定的参数文件-该文件中的设置可能会覆盖示例命令中的-skip设置。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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