IT:AppCmd:HowTo:Backup and Restore IIS Server Metadata
Summary
Before doing changes to IIS, it's a good idea to take a backup of the IIS server's metadata.
Note: Backing up the metadata is not the same as backing up the website's files -- it's the backing up of IIS's schema of websites, their bindings, their certificates, etc.
Process
Create a Backup
appcmd add backup "MyBackup"
Restore a Backup
You can always restore a backup later by using:
appcmd restore backup "MyBackup"
Listing Backups
You can list available backups using:
appcmd list backup
Delete a Backup
appcmd delete backup "MyBackup"
Help
appcmd backup /? or appcmd add backup /? appcmd restore backup /? appcmd list backup /? ... appcmd delete backup /?