[Solved] Import all Websites and application pools by Exporting it from IIS7.5

Task:

As one of Web server’s c: drive was crashed and there was an urgent requirement of creating all websites one newly formatted C:\.

 

Scenario:-

I have already configured DR for websites on remote location using MSDEPLY tool which synchronizes all the websites configuration and Contents.

 

Actions Taken:-

  1. Taken remote of DR web server.
  2. Exported all Application Pools from the Server with below command

%windir%\system32\inetsrv\appcmd list apppool /config /xml > c:\apppools.xml

  1. Exported all Websites along with Applications ( Virtual Directories ) with below command

%windir%\system32\inetsrv\appcmd list site /config /xml > c:\sites.xml

  1. Copied both the files from DR webserver to newly formatted C: \
  2. Then Task is to import all application pools and Websites in IIS 7.5
  3. To do so first open INETMGR and delete all Applications and default Website from it ( as its newly formatted we don’t have any important website configured on it)
  4. First Import Application pools which can be done with below command on CMD

%windir%\system32\inetsrv\appcmd add apppool /in < c:\apppools.xml

  1. Then import all Websites along with Applications to do so use below command

%windir%\system32\inetsrv\appcmd add site /in < c:\sites.xml

  1. After all done , IISReset /stop and then IISReset /start

 

All done J , All websites along with its corresponding Application pools will be created and sites will be browsed.

 

 

Thanks

 

Prashant Deshpande

 

 

 

Advertisements

2 Comments

Filed under Uncategorized

2 responses to “[Solved] Import all Websites and application pools by Exporting it from IIS7.5

  1. Hi Hegde ,
    Thanks for above one .

    I need to deploy websites to new server which are there in old server is there any way to take backup of application pools with application binaries in iis

    • in IIS 7.5 itself there is feature of export application which takes backup and from another server you can choose import application which will fulfill your requirement

      or using msdeploy tool you can achieve it if your IIS is of other version

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s