Export methods of all application pools on IIS7 to bind domain names in batches and iis7 to batch

Source: Internet
Author: User

Export methods of all application pools on IIS7 to bind domain names in batches and iis7 to batch
How to export all application pools on IIS7 +:
% Windir %/system32/inetsrv/appcmd list apppool/config/xml> c:/apppools. xml
 
This command will export all the application pools on the server, but some of them are unnecessary and need to be deleted. For example:
DefaultAppPool
Classic. Net AppPool
If an application pool with the same name already exists during import, the import will fail.
 
How to import an application pool:
% Windir %/system32/inetsrv/appcmd add apppool/in <c:/apppools. xml
 
In this way, all application pools can be imported to another server.
 
How to export all sites:
% Windir %/system32/inetsrv/appcmd list site/config/xml> c:/sites. xml
 
Similarly, we need to edit the sites. xml file to delete unnecessary sites. For example:
Default Website
 
How to import sites:
% Windir %/system32/inetsrv/appcmd add site/in <c:/sites. xml
 
Now, the import is complete. Check whether the IIS configurations of the two servers are the same.
 
In addition, we will introduce how to export and import a site separately.
Export a separate application pool:
% Windir %/system32/inetsrv/appcmd list apppool "application pool name"/config/xml> c:/myapppool. xml
The name of the application pool to be exported in yellow
 
Import a separate application pool:
% Windir %/system32/inetsrv/appcmd add apppool/in <c:/myapppool. xml
 
Export a separate site:
% Windir %/system32/inetsrv/appcmd list site "site name"/config/xml> c:/mywebsite. xml
The site name to be exported in yellow
 
Import a separate site:
% Windir %/system32/inetsrv/appcmd add site/in <c:/cnziben.com. xml
 

Reference: http://www.microsoftpro.nl/2011/01/27/exporting-and-importing-sites-and-app-pools-from-iis-7-and-7-5/



Iis7 backup, I want to back up all content in iis, including ftp, application pool and website information

You can follow these steps to complete the required operations: Open the iis manager, right-click your computer name on the application pool-all tasks-Backup Recovery configuration-create backup-enter the backup name. Note that you must set a password. Otherwise, cannot be restored normally. After that, you can see the file you just backed up in the C: \ WINDOWS \ system32 \ inetsrv \ MetaBack path.
When restoring iis, you need to put the backup file under the directory C: \ WINDOWS \ system32 \ inetsrv \ MetaBack, and then open the iis manager, right-click your computer name on the application pool-all tasks-Backup and Restore configuration-select the file name to be restored-and enter the password for backup.




WIN7, IIS7, application pool, Set

Double-click the application pool with the left button, and then there is an option in the upper-right corner of the interface: Add a new application pool





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.