Iis7, iis8 configuration backup and restore tutorial

  
Method 1:
1, open our IIS manager, find the "shared configuration" in the function view, and then double-click to enter.
2, enter the "shared configuration" after the single unit at the top right of the "export configuration" option, select the physical path of the export configuration file, and then set a password, the password must contain numbers, symbols, uppercase and lowercase letters Combine and at least a strong password of 8 characters long. After confirming the export, you will generate 3 files of administration.config, applicationHost.config and configEncKey.key in your export configuration file directory. These 3 files are the IIS sites we backed up. Configuration information file.
3, now is to restore the configuration information of IIS, first copy your exported administration.config, applicationHost.config and configEncKey.key three files to the computer or server you need to restore IIS configuration information, and then open IIS, also found in the function view “ shared configuration & rdquo; and open.
4, the "Enable shared configuration" check, the physical path to select the directory where you backed up the file, the user name, password input box do not need to fill out, directly click on the application in the upper right, then it wants You enter the password, after confirming and restarting our IIS, you can see that the previous site information has been restored.
Method 2:
cd c:\\windows\\system32\\inetsrv
:: Create Backup
appcmd add backup "Backup Name"
:: List all backups
appcmd List
backup
:: Restore Backup
appcmd restore backup "Backup Name"
The generated backup file is in “C:\\Windows\\System32\\inetsrv\\backup”, you need to manually back up These files;
will throw an error when restoring the backup, just start the IIS service manually.

Copyright © Windows knowledge All Rights Reserved