Iis – How Do I Migrate a Single Application from IIS6 to IIS7

iisiis-6iis-7msdeploy

I have a number of applications currently running on a Windows Server 2003 system. We'd like to migrate one of those applications to IIS7 on a Windows Server 2008 R2 box. This is a new web server, has IIS installed, but nothing else.

I know how to migrate the entire server, and even the entire site, but how do I migrate the server-wide settings, the site-wide settings, the app pool used by the application and then the application itself?

Best Answer

The basic answer is: Use the Web Deployment Tool.

You'd use something like

msdeploy -sync -source:metakey=lm/w3svc/1 -dest:package=c:\backupSite.zip -enableLink:AppPool

(Where 1 is the IIS site identifier) on the source machine, and then the same thing in reverse on the target:

msdeploy -sync -source:package=c:\backupSite.zip -dest:metakey=lm/w3svc/1

While you're restoring it to an IIS7 server, you still need to use the same restoration target type as was specified as the source (i.e. metakey).

You can add -whatif to the end to view what it's planning to do.

More here: http://technet.microsoft.com/en-us/library/ff633422(v=WS.10).aspx

and here: http://learn.iis.net/page.aspx/427/migrate-a-web-site-from-iis-60-to-iis-7-or-above/