Wednesday, October 07, 2009 3:23 PM
Install MS Deploy on the source IIS 6 Web server
- Install the web deployment tool on the source IIS 6 server. Run the appropriate install package (x86 or x64).
- Select Custom for the setup type.
- On the Custom Setup page, click the Install the remote agent service down arrow, select Will be installed on local hard drive, then click Next.
- Complete the install.
- Set the Web Deployment Agent Service to automatic and start it.
Install MS Deploy on the destination IIS 7 Web server
- Run the appropriate install package (x86 or x64)
- Choose Typical for the setup type
- Complete the install
Migrate website
- Run the following command on the source (IIS 6) server:
- msdeploy -verb:sync -source:metaKey=/lm/w3svc/site# -dest:auto,computername=SERVERNAME -enableLink:appPool
- Replace site# with the site ID of the website you are trying to migrate. You can find the site ID # by opening Inet Manager, clicking on Web Sites, and view the number listed next to your website in the Identifier column
- Replace the value for SERVERNAME with the name of the destination server.
- If you need to change the home directory on the destination server, you will need to use a replace rule. Below is a fully functional example. In this scenario I am migrating the site Prismstaging.stewart.com from an IIS 6 box to the new web server SERVER05D. Since the old server has a D: drive and SERVER05D has an E: drive, I need to use the replace rule to change the home directory on the destination.
- msdeploy -verb:sync -source:metaKey=/lm/w3svc/43148251 -des:auto,computername=SERVER05D -enableLink:appPool -replace:objectname=metaproperty,scopeattributename=name,scopeAttributeValue=Path,targetAttributename=value,match=d:\\test.website.com,replace=e:\test.website.com
-