IIS7 Save configuration file and import, export, backup, restore

Source: Internet
Author: User

IIS6 want to save the configuration, just under the graphical interface right-click to save, but Windows 2008 under the IIS7 does not have such an option,

IIS7 configuration files are several, under the C:\windows\system32\inetsrv\config folder, if you need to manually back up, just copy a config this directory can be.

at the same time, IIS7 can also manage backups through the Appcmd command, such as:
c:\windows\system32\inetsrv\AppCmd.exe LIST site/config/xml > Iisappcmdexport.xml
This allows the configuration file to be exported to C:\Users\Administrator\iisappcmdexport.xml (assuming the user is Administrator).

the other commands are as follows:


1. Backup
%windir%\system32\inetsrv\appcmd.exe Add Backup "My backup Name"

2. Restore

%windir%\system32\inetsrv\appcmd.exe Restore Backup "My backup Name"

3. Deleting a backup

%windir%\system32\inetsrv\appcmd.exe Delete Backup "My backup Name"

4. View Backup

%windir%\system32\inetsrv\appcmd.exe List Backup

If you want to bulk move data on IIS to another server, you need to export all the application pools and sites:
1. Export the application pool

%windir%\system32\inetsrv\appcmd.exe LIST apppool/config/xml > Poolappcmdexport.xml

2. Export the site configuration

%windir%\system32\inetsrv\appcmd.exe LIST site/config/xml > Iisappcmdexport.xml

3. Import the application pool

%windir%\system32\inetsrv\appcmd.exe ADD Apppool/in < Poolappcmdexport.xml

4. Import Site Configuration

%windir%\system32\inetsrv\appcmd.exe ADD Site/in < Iisappcmdexport.xml

From for notes (Wiz)

IIS7 Save configuration file and import, export, backup, restore

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.