MSDeploy Migrates Only Configuration From IIS 6 to 7

We have 19 websites, many of which have many โ€œvirtualโ€ directories on IIS 6. I am trying to transfer all this to IIS 7 on another server.

Following the instructions of http://learn.iis.net/page.aspx/427/migrate-a-web-site-from-iis-60-to-iis-70/ , I tried to run the following command:

msdeploy -verb:sync -source:metakey=lm/w3svc -dest:package=D:\Temp\Sites.zip > D:\temp\WebDeployPackage.log 

It worked until I got the "Out of disk space" error. Drive D, which you will notice, is the target location for the package, and there is a lot of space in the log (all resources for websites are about 5 GB, disk is 200+). Although C drive has a limited size (6 GB), so this can be a problem.

In any case, I believe that it was best to try to migrate the settings / configurations rather than the actual resources. We can easily deploy resources to a new server using our NAnt build scripts, so this is not a problem. However, if all the correct configurations have moved, it would not be easy to do manually.

So, is there a way to export / package only IIS 6 server configuration / settings using msdeploy (or any other tool?)

+6
iis-7 iis-6 msdeploy
source share
1 answer

I think I could find it: as described here: http://forums.iis.net/t/1159017.aspx

Note the addition of the -disabledLink option:

 msdeploy -verb:sync -source:metakey=lm/w3svc -disableLink:contentExtension -dest:package=D:\Temp\Sites.zip > D:\temp\WebDeployPackage.log 
+6
source share

All Articles