We create a msdeploy package for multiple sites as follows:
"c:\Program Files\iis\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:manifest=MultipleSitesMultipleProviders.xml -dest:package=Test.zip,encryptPassword="password" -disableLink:ContentExtension -enableLink:AppPoolExtension
Content of MultipleSitesMultipleProviders.xml:
<sitemanifest><appHostConfig path="SITE1" /><appPoolNetFx path="SITE1" /><dirPath path="C:\SITES\SITE1" /><appHostConfig path="SITE2" /><appPoolNetFx path="SITE2" /><dirPath path="C:\SITES\SITE2" /><appHostConfig path="SITE3" /><appPoolNetFx path="SITE3" /><dirPath path="C:\SITES\SITE3" /></sitemanifest
And here is how that package is restored:
"c:\Program Files\iis\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -dest:auto -source:package=Test.zip,encryptPassword="password"
This restores all three sites. The problem I'm trying to solve is how to tell msdeploy.exe to restore just one of the sites that I specify somehow. I'm thinking this might be done using a -skip parameter which would tell the deploy to skip the two sites we don't want to install. But I could not understand what the format of that this command might look like.
Here is one wild guess of what I could try passing which did nothing:
-skip:objectName=appHostConfig,absolutePath=^SITE2$,skipAction=Delete -skip:objectName=appHostConfig,absolutePath=^SITE3$,skipAction=Delete
Is this even possible to do? Any help would sure be appreciated! Thank you.