Iis7 and iis8 configuration backup and Restoration

Source: Internet
Author: User

Iis7 and iis8 configuration backup and Restoration

Method 1:
1. Open our IIS manager, find the "shared configuration" function in the function view, and double-click it.
2. Go to "shared configuration", select the "export configuration" option in the upper-right corner of the single machine, select the physical path of the exported configuration file, and set a password, the password must be a combination of numbers, symbols, uppercase and lowercase letters and a password of at least 8 characters. After you export the password, an administration is generated in the directory of the exported configuration file. config, applicationHost. config and configEncKey. there are three files in total. These three files are the IIS Site configuration information file we have backed up.

3. Now I want to restore the configuration information of IIS. First, I want to export the administration information. config, applicationHost. config and configEncKey. copy the three files "key" to the computer or server on which you want to restore IIS configuration information, and then open IIS. In the function view, find "shared configuration" and open it.
4. Select "enable shared configuration" and select the directory of the file you backed up in the physical path. You do not need to enter the user name or password input box. Click the application in the upper-right corner, then it requires you to enter the password. After you confirm the password, restart our IIS and you will be able to see that the previous site information has been restored.
Method 2:
Cd c: \ windows \ system32 \ inetsrv
: Create a backup
Appcmd add backup "backup name"

: List all backups.
Appcmd list
Backup

: Restore backup
Appcmd restore backup "backup name"
The generated backup files are in "C: \ Windows \ System32 \ inetsrv \ backup". You need to manually back up these files;

An error is thrown when the backup is restored. You only need to manually start the IIS service.

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.