Search Chirayu Software Solutions Blog

Saturday, April 27, 2019

IIS Backup and Restore Steps

using appcmd, create IIS configuration backup on first server. To do it, run the command prompt with the administrator privileges and go to the following directory:
cd c:\Windows\system32\inetsrv
Create the IIS configuration backup with name srviis1-backup-20161107:
appcmd add backup srviis1-backup-20161107
Copy the backup folder to the same directory c:\windows\system32\backup on another server.
To display the list of all available backups, run the following command:
appcmd list backup
As we can see, the backup we have copied has appeared in the list of available backups.
Recover IIS configuration from this backup:
appcmd restore backup srviis1-backup-20161107
The same IIS version has to be used on both servers

No comments: