Back Up IIS configuration

I’m always looking for this info so I’ll post it here. To back up, list, and restore the configuration of IIS 7, IIS 7.5, IIS 8.0, or IIS 8.5, use appcmd as described in MSKB 954872. In brief:

cd %Windir%\system32\inetsrv
appcmd list backup
appcmd add backup "yyyy.mm.dd backupName"
appcmd list backup
appcmd /?

The custom backups are stored in this folder:

%Windir%\system32\inetsrv\backup

You will also see the automatically-created configuration history backups, explained here. Those backups are in this folder:

%Windir%\system32\inetsrv\History

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.