This post will discuss the procedure to backup the configuration of IIS.
As a best practice , It is adviced to take a backup before making any changed to your system.However , taking a complete backup to make changed only to IIS would be unfair.
There may be many scenarios that you would like to take a backup of the IIS configuration. I have had multiple issues where I have seen IIS websites not working because of changes made to the settings like authentication type or SSL settings.
The following set of commands will enable you to take a backup of IIS and restore the same when needed.
To take a backup, Open Command prompt with administrator privileges
Change the directory to C:\Windows\System32\inetsrv
to take a fresh backup
run “appcmd add Backup ‘Name of Backup’ ”
To restore backup
“appcmd restore backup ‘Name of Backup’ ”
To see all available backups
appcmd list backup
No comments:
Post a Comment