IIS: Creating a backup of your IIS7 configuration

Backing up IIS7 configuration is as simple as copying the \windows\system32\inetsrv\config directory (and subdirectories) into a backup directory, so you don’t need anything special to do it. Just include this directory in whatever your OS/content back-up plan is, or write a custom script to do it.

To help make managing backups easy, we’ve added a simple cmd-line option to AppCmd.exe that makes management of backup/restore sets easy. For example, to backup configuration, run the follow command:

 %windir%\system32\inetsrv\appcmd.exe add backup "My Backup Name"

to restore that backup, run this command:

 %windir%\system32\inetsrv\appcmd.exe restore backup "My Backup Name"

to delete a backup, run this command:

 %windir%\system32\inetsrv\appcmd.exe delete backup "My Backup Name"

More detail can be found here.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: