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.