How to restore and back up xml configuration files under IIS

Source: Internet
Author: User

Backup procedure: Open IIS-> right-click the website-> Save the configuration to a file-> select the path (unencrypted ).

After the sub-device is reinstalled, run the doscommand to restore the sub-device. (Because there are no convenient steps on IIS6 ). There is an IIS backup and restoration tool on the Internet called IISBackup, but I don't think it is easy to use, so it is better to use the doscommand. The following is a method.

1. First open the file you saved and view the IIsWebService tag in the XML structure.

Copy codeThe Code is as follows: <? Xml version = "1.0"?>
<Configuration xmlns = "urn: microsoft-catalog: XML_Metabase_V64_0">
<MBProperty>
<IIS_Global Location = "."
SessionKey = "session"
>
</IIS_Global>
<IIsWebService Location = "/LM/W3SVC"
AllowKeepAlive = "TRUE"
........................

Check the Location = "/LM/W3SVC" Path in IIsWebService.

2. Use Win + R to open the running box and Enter cmd to enter the DOS interface.

3. Type cd c: \ Windows \ System32 to change the path.

4. Type

Iiscnfg/import/f c: \ IISBak. xml/sp/LM/W3SVC/1/dp/LM/W3SVC/children/merge

C: \ IISBak. xml is the path of the saved configuration file.

And/LM/W3SVC is the Local value in your IIsWebService.

This completes all the steps.

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.