Vous êtes sur la page 1sur 17

IIS Migration – Concepts &

Overview
Uday B Kushwaha
ASME – IIS [RSA]
Types of web deployment
Migrate your site to the target by using a
package file
Migrate your site to the target by using the
Deployment tools
Migrating all sites in IIS6 to IIS7 using the
backup/Restore website configuration
Deployment Tools
Web Deploy by Microsoft
IIS Easy Migration Tool (IEMT) by
HostsTools
IIS Sites Transfer by HostsTools
IISSchema.exe by mvolo

Please refer to below URL for more details on these


tools
http://www.iis.net/downloads/category/deploy-and-migrate
Web Deploy
Web Deploy (msdeploy) simplifies deployment of Web
applications and Web sites to IIS servers.
Administrators can use Web Deploy to synchronize IIS
servers or to migrate to newer versions of IIS.
Web Deploy Tool also enables administrators and
delegated users to use IIS Manager to deploy ASP.NET
and PHP applications to an IIS server.
Kinds of migrations by Web Deploy

• Migrate 1 or 1,000 Web sites from IIS 6.0 to IIS 7 or


above including all the configuration settings, content and
certificates
• Migrate a single application
• Migrate an entire server (all Web sites, application pools,
etc.) from IIS 6.0 to IIS 7 or above
• Migrate a custom manifest comprised of sites, application
pools, assemblies, COM objects, registry keys, content
and more from IIS 6.0 to IIS 7 or above
IIS MIGRATION STEPS
1. Backup your source IIS server (IIS 6)
a)In IIS Manager, right-click the local computer, point to All
Tasks, and click Backup/Restore Configuration.
b)Click Create Backup.
c)In the Configuration backup name box, type a name for
the backup file.
d)Select the 'Encrypt backup using password' check box,
type a password into the Password box, and then type the
same password in the Confirm password box.
e)Click OK, and then click Close.
Web Deploy Install

2. Install web deployment tool on source


server (IIS 6)
Download Web deploy tool based on OS type and
Processor architecture
Refer URL'S below for downloading different web
deploy versions.

Web Deploy 1.1 http://www.microsoft.com/en-in/download/details.aspx?id=24709


Web Deploy 2.0 http://www.microsoft.com/en-us/download/details.aspx?id=25230
Web Deploy 3.0 http://www.microsoft.com/en-in/download/details.aspx?id=30436
Web Deploy 3.5 http://www.iis.net/downloads/microsoft/web-deploy
Dependency Check on Source Server

3. Check for all the dependencies installed


on source Server

msdeploy -verb:getDependencies -source:metakey=lm/w3svc/1

Note -- Run above command from source server Msdeploy directory to


check the dependencies installed,
/1 is website identity number and belongs to Default website.
If you want to check dependencies for all sites than remove /1 and run the above
command without /1 or website identity number

Once you run the above command it will display all the dependencies
software installed E.g Asp.net 2.0, 4.0 or any other dependent software or
com files installed.
Backup on Source Server

4. Backup the configuration of all websites


on Source server
msdeploy -verb:sync -source:webserver60 -dest:archiveDir=<path to
archive to>, encryptPassword=<password> -
disableLink:contentExtension
Example: msdeploy -verb:sync -source:webserver60 -
dest:archiveDir=D:\migration,encryptPassword=msd@123 -
disableLink:contentExtension
Note : This will create your IIS website configuration
and data backup in XML format.
Destination Server – Install Server

5. Install IIS 7.0 / 7.5 on destination server


Note: Install IIS (7.0 or 7.5) on destination server, Refer
link below for installation steps
http://www.iis.net/learn/install/installing-iis-7/installing-iis-7-and-above-on-windows-
server-2008-or-windows-server-2008-r2

After IIS installation installed all the dependency


software's found as per Step 3 ( E.g .net 2.0, 4.0 etc)
Backup destination server

6. Back up IIS 7 configuration


It is important to create a backup of the IIS7 configuration
before you start. You never know when you’ll make a mistake,
and restoring IIS to the default configuration without a backup is
difficult.
To back up the IIS 7 from a command prompt
Click Start -> Run -> type “cmd” and press OK.
At the command prompt, navigate to the
%windir%\system32\inetsrv\ folder.
Once in the target directory, type: appcmd add backup
“BackupPreMigrate”
Press Enter
Steps – Contd.,

7. Install web deployment tool on


Destination server (IIS 7)

Download Web deployment tool based on OS type and


processor architecture
Refer URL'S from step 2, for all Web deployment
versions.
Note: Make sure your account has administrator rights
while installing web deployment.
Steps -Contd.,

8. Copy the XML configuration files created


from source to destination server

Note: Copy .xml files created as per step 4 from source to


destination server
Destination Server – Restore steps

9. Restore configuration files on destination


After all files were in place on the new server, run below
command to restore IIS 7 with the configuration
msdeploy -verb:sync -source:archivedir=<path to archive>,encryptPassword=<password
set in previous command> -dest:webserver60

Example: msdeploy -verb:sync -


source:archivedir=D:\migration,encryptPassword=msd@123
-dest:webserver60

Note : Above command will create all sites on your destination IIS server and also
set the web content path for all the sites, It is also observe that while using some
of the lower webdeploy versions webcontent directory was not moving to
destination server in such scenario used following command to copy the
webcontent directory from source to destination server, this will copy the
webcontent directory and keep all the permissions intact.
Destination Server - Steps

Copy webcontent folder along with all sub folders from


source to destination using XCopy command
xcopy <source path> <destination path> /O /X /E /H /K
Example :
xcopy D:\inetpub \\servername\D$ /O /X /E /H /K

xcopy D:\inetpub \\WEB01\D$ /O /X /E /H /K

Note: Run above command from source server (IIS6)


command prompt content drive where your web content
located.
Validation check at destination server

10. Check destination IIS server to


confirm all the IIS sites were created
Test all your migrated website status, Possibly you
need to check the application pool settings and correct
the permissions and application pool if require.
Check for SSL certificate Bindings and assign the
certificate for website, if it is not bind properly with
website after migration.
Questions?

Vous aimerez peut-être aussi