milka.dk
milka.dk
IIS7: Backup/Restore Configuration
4. jul 2007
Appcmd can be used to backup and restore IIS7 configuration, it will backup global server configuration wich includes: There might be additional files depending on your specific configuration. Backup's are located in "C:\Windows\System32\inetsrv\backup"
administration.config
applicationHost.config
mbschema
metabase
redirection.config
You can the following 2 command to make a backup
Appcmd add backup <-- this auto names the backup to current date time
Appcmd add backup "My Custom Name"
You'll get an output like this.
BACKUP object "20070808T154237" added
BACKUP object "My Custom Name" added
If you want to restore a backup, you can list available backups with this command.
Appcmd list backups
This gives you a list like this
BACKUP "20070808T154237"
BACKUP "My Custom Name"
So now you can chose your backup to restore and you do it with this command
Appcmd restore backup "20070808T154237"
Depending on your configuration it can take from a few seconds to a few minutes, but it'll give an output like this once finsihed.
Restored configuration from backup "20070808T154237"