This post has been republished via RSS; it originally appeared at: IIS Support Blog articles.
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.
Alternative ways of using Web Deploy for migration
- Live sync: Try live sync first. This can be done by pushing the site from a source server or pulling it from the target server (Reference). In the sample command below, we are pushing/syncing the site from the server in which we run this command to the Server1:
- Offline sync: If live sync fails (connection issues are the most common reasons) or if the file size is over 4GB, use offline sync (Reference). With offline sync, we are basically packaging the site in one server and unpacking it in another server:
- IIS settings only: You can also sync only IIS settings. In this case, you will need to copy the content manually.