You may want to migrate your websites between IIS servers when you need OS upgrade. In many cases, migration is easier than building a site from scratch.
You can use Web Deploy tool to migrate websites. Web Deploy is the shorter name for Web Deployment Tool. You can download this tool by using Web Platform Installer (More Information). We leverage this tool by calling
msdeploy in the Command Prompt.
There are different ways of performing this migration by using Web Deploy. However, before staring the migration, check the dependencies first (Reference). Run the command below. Based on the output, you may need to take some actions such as installing certain server features or creating an application pool.
msdeploy -verb:getDependencies -source:apphostconfig="Default Web Site"
Alternative ways of using Web Deploy for migration
msdeploy -verb:sync -source:apphostconfig="Default Web Site" -dest:apphostconfig="Default Web Site",computername=Server1
msdeploy -verb:sync -source:apphostconfig="Site1" -dest:archivedir=c:\archive\package.zip
msdeploy -verb:sync -source:archivedir=c:\archive\package.zip -dest:appHostConfig="Site1"
msdeploy -verb:sync -source:webserver60 -dest:package=c:\somepackage -disableLink:Content
After the migration is completed, check your site’s bindings. Test if the site is accessible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.