The following information would enable you to get the knowledge about migrating website from IIS 6.0 to IIS 7 by making use of the Web Deployment Tool.
Using the information described here, you can :
- Easily do migration of a single or multiple Web sites from IIS 6.0 to IIS 7. This also includes the migration of configuration settings, content and certificates
- Single applications too, can be migrated with enough ease
- The complete server that contains the websites, applications, pools etc. can be migrated from IIS 6.0 to IIS 7
A. Check the Dependencies
You must first check for the dependencies of the site, for that you must run the below command:
msdeploy -verb:getDependencies -source:metakey=lm/w3svc/1
Analyze the output and try to find the dependencies. Also, you must look for any script maps or the components installed that are being used by your website.
Incase the website is inherited with any script maps, it would not be shown in the list of dependency. Further you also need to manually check for the script maps for your website.
Compile a list of the components needed on the destination.
You can check the following to get the detailed steps about analyzing the output of getDependencies : Viewing Dependencies.
B. Configuring the target
Assuming that you have reviewed the list of dependencies and that, its installation has been done over the destination server.
The below have been in use by you website :
- Windows Authentication
- Anonymous Authentication
You must install the appropriate components and the modules based on the analysis.
C. Migrating your website to the target using the package file
It is recommended to take a backup of the destination server, despite the fact that you are simply doing that for testing purposes. This allow you do a quick restore.
%windir%\system32\inetsrv\appcmd add backup “PreWebDeploy”
Now, you are required to fire the below command over the source server for creating a compressed package file of the server:
msdeploy -verb:sync -source:metakey=lm/w3svc/1 -dest:package=c:\Site1.zip > WebDeployPackage.log
Then, you must copy the package file over to the destination server.
Then fire the below command over the destination server for validating about the effects of a sync operation were run :
msdeploy -verb:sync -source:package=c:\Site1.zip -dest:metakey=lm/w3svc/1 -whatif > WebDeploySync.log
Once the results have be verified, you can refire the same command but with removing the whatif flag:
msdeploy -verb:sync -source:package=c:\Site1.zip -dest:metakey=lm/w3svc/1 > WebDeploySync.log
Incase you do not wish to make use of the package, you can alternately use the Web Deployment Agent Service (MsDepSvc, also called “remote service”) for synchronizing from IIS 6.0 server to IIS 7.
a. You can either install the remote service on the source or even the destination server based on your preferences about whether you wish to synchronize it from a remote source or to a remote destination.
b. Then Start the service on the computer.
net start msdepsvc
c. Fire the below command for carrying out the “push” synchronization from the local source to a remote destination (NOTE : change ‘primeserver’ to the actual name of your remote machine). Fire the command with the whatif flag first, and then removing the same upon confirmation that the command is doing the job for you as per your expectations.
msdeploy -verb:sync -source:metakey=lm/w3svc/1 -dest:metakey=lm/w3svc/1,computername= primeserver -whatif > msdeploysync.log
The below command can be used as an alternative for “pulling” the synchronization from the remote source to the localdestination (NOTE: Change the primeserver to the actual name of your remote machine). Fire the command with the whatif flag first, and then removing the same upon confirmation that the command is doing the job for you as per your expectations.
msdeploy -verb:sync -source:metakey=lm/w3svc/1,computername=primeserver -dest:metakey=lm/w3svc/1 -whatif > msdeploysync.log
This concludes the migration of your website.
Like this post ?
Share on your Social Networking Profile ( Facebook, Twitter & Google+ ) and get a flat 10% Recurring discount on our VPS Hosting and Dedicated Servers.
Email us the shared link at : [email protected] or speak to our live chat operator now, by clicking on the “Live Chat” Scroller on the left-hand side of this page and we will provide you with the discount Coupon right away!