How
to Copy windows Server 2008 IIS Configurations
TO TAKE FULL BACKUP FOLLOW THE LINK BELOW
http://blogs.iis.net/bills/archive/2008/03/24/how-to-backup-restore-iis7-configuration.aspx
---------------------------------------------------------------------------------------------------------------------
How to copy IIS configuration from existing server to new one
using wizard to export IIS configuration you should install web deploy tool
http://www.iis.net/learn/publish/using-web-deploy/use-the-web-deployment-tool
source
http://technet.microsoft.com/es-es/library/dd569059(v=ws.10).aspx
----------------------------------------------------------------------------------------------------------------
To run commands using Command Prompt use the following commands.
---------------------------------------------------------------------------------------------------------------------
How to copy IIS configuration from existing server to new one
I'd say export your config
In IIS manager, you need to export the config from server 1. In IIS manager, click the Server node, and go to Shared Configuration under Management and Click “Export Configuration”. You can use a password if you are sending them across the internet, if you are just gonna move them via a USB key then don't sweat it.
Move these files to your new server
administration.config
applicationHost.config
configEncKey.key
On the new server, go back to the “Shared Configuration” section and check “Enable shared configuration.” Enter the location in physical path to these files and apply them.
It should prompt for the encryption password(if you set it) and reset IIS.
BAM! Go have a beer!
http://www.iis.net/learn/publish/using-web-deploy/use-the-web-deployment-tool
source
http://technet.microsoft.com/es-es/library/dd569059(v=ws.10).aspx
----------------------------------------------------------------------------------------------------------------
To run commands using Command Prompt use the following commands.
Run Command Prompt with
administration Privileges.
To Export the Application Pools on
IIS 7 :
%windir%\system32\inetsrv\appcmd list apppool /config /xml > c:\apppools.xml
%windir%\system32\inetsrv\appcmd list apppool /config /xml > c:\apppools.xml
This will export all the application
pools on you’re webserver, therefor you need to edit the apppools.xml and
remove the application that you do not need to import for example:
- DefaultAppPool
- Classic .NET AppPool
- SecurityTokenServiceApplicationPool
And other apppools that already
exist on the second webserver, appcmd doesn’t skip already existing apppools,
it just quit’s and doesn’t import any.
To import the Application Pools:
%windir%\system32\inetsrv\appcmd add apppool /in < c:\apppools.xml
%windir%\system32\inetsrv\appcmd add apppool /in < c:\apppools.xml
All the AppPools in the xml will be
created on you’re second webserver.
To Export all you’re website:
%windir%\system32\inetsrv\appcmd list site /config /xml > c:\sites.xml
%windir%\system32\inetsrv\appcmd list site /config /xml > c:\sites.xml
This will export all
the websites on you’re webserver, therefor you need to edit the sites.xml
and remove the websites that you do not need to import for example:
- Default Website
And all other websites that already
exist on the second webserver.
To Import the website:
%windir%\system32\inetsrv\appcmd add site /in < c:\sites.xml
%windir%\system32\inetsrv\appcmd add site /in < c:\sites.xml
It’s also possible to export a
single website or application pool all you need to do is add the name of the
Application Pool or Website to the command line:
To export/import a single
application pool:
%windir%\system32\inetsrv\appcmd list apppool “MyAppPool” /config /xml > c:\myapppool.xml
%windir%\system32\inetsrv\appcmd list apppool “MyAppPool” /config /xml > c:\myapppool.xml
Import:
%windir%\system32\inetsrv\appcmd add apppool /in < c:\myapppool.xml
%windir%\system32\inetsrv\appcmd add apppool /in < c:\myapppool.xml
To export/import a single website:
%windir%\system32\inetsrv\appcmd list site “MyWebsite” /config /xml > c:\mywebsite.xml
%windir%\system32\inetsrv\appcmd list site “MyWebsite” /config /xml > c:\mywebsite.xml
Import:
%windir%\system32\inetsrv\appcmd add site /in < c:\mywebsite.xml
%windir%\system32\inetsrv\appcmd add site /in < c:\mywebsite.xml
No comments:
Post a Comment