Source: IIS FAQ
Backup & Restore of the IIS Metabase - What tools can I use?
The backing up of IIS involves the backup of the IIS Metabase. The IIS Metabase is a database similar in structure to the Windows Registry. The IIS Metabase is optimized for IIS and provides a hierarchal storage and fast retrieval of IIS configuration properties for Web sites, Virtual directories, FTP Sites, SMTP and NNTP sites.
To learn more about the IIS Metabase objects and properties go to this URL: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref/html/psdk/asp/aore94th.asp
There are a number of ways to backup the Metabase and some are better than others when we look at it closer:
- IIS Backup/Restore option in the Internet Services Manager snap in.
- IIS Metabase Editor to Export/Import the Metabase to a text file.
- ADSI command line script.
- Third party utilities.
IIS Backup/Restore option in the Internet Services Manager snap in.
The Internet Services Manager snap in contains a backup & restore option that can be accessed by right-clicking the * Computername node in the MMC. On this menu you will see a Backup/Restore configuration option. as shown below.
.
Selecting the Backup/Restore configuration menu item will open the following dialog where you can elect to backup the Metabase, restore a recent backup of the Metabase or delete a Metabase backup from the list of previous backups.

Clicking Create backup... will open the following dialog which asks for a backup name. This backup name is something you can use to remember the backup by.

After you click OK the backup is performed and the Configuration Backup/Restore dialog is updated with the details of the backup including the date & time of when the backup was performed.

The backup is stored in the \Winnt\System32\InsetSrv\Metaback folder on the IIS computer.
You can also backup the IIS Metabase using ADSI which is a programmatic way of performing the above backup. For more information on ADSI backups of the IIS Metabase see this article How do I backup the Metabase using a script?
Right now you are probably think thinking that this is very good an easy to do and I have a nice backup of my IIS Metabase. Well this is true but with one very large caveat!
- The Metabase backup can only be restored to the current machine.
- The Metabase backup can not be restored after Windows is reinstalled!
This makes the IIS Metabase backup only good for day to day backups where you may accidentally delete a web site or virtual directory, or something goes wrong while working on an ADSI script, or while using the Metabase Editor.
So what options do I have if I want to restore the Metabase after a full system reinstall? The next topic should help you in this situation.
IIS Metabase Editor to Export/Import the Metabase
As I mentioned earlier the IIS Metabase is like the Windows registry and like the registry there is a tool that you can use to make modifications directly to the Metabase properties.
WARNING: Using the Metabase Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft and www.IISFAQ.com cannot guarantee that problems resulting from the incorrect use of Metabase Editor can be solved. Use Metabase Editor at your own risk.
Now that we have that warning out of the way I would suggest if you do make modifications to the IIS Metabase that you perform a backup prior to making those modifications.
The image below shows you what the IIS Metabase editor looks like; for more information on downloading the IIS Metabase editor see the following Microsoft KB Article. http://support.microsoft.com/support/kb/articles/Q232/0/68.ASP

The Metabase editor can be used to export Metabase properties to an ASCII text file that you can use to restore the settings onto either another computer or a computer that has just been re-installed.
On the Metabase menu item in the IIS Metabase editor there are options to export and import the Metabase settings.
 |
|
Export the selected item in the tree and all child objects to a ASCII Text File |
| Import a previously exported file and restore all content |
| Export all FTP Sites to a ASCII Text File |
| Export all Web Sites to a ASCII Text File |
| Run the standard IIS MMC Backup/Restore |
| Exit the Metabase Editor. |
Export the selected item in the tree and all child objects to a ASCII Text File
This option will allow you to export a particular Metabase entry and all child entries to a text file. For example if you wanted to export one specific web site you would select the Instance ID of that web site and then select the Export Text File... option.
Import a previously exported file and restore all content
This option will allow you to import a previously exported Metabase text file. The import function can overwrite any existing settings in the Metabase and you should perform a backup first. You have the option of importing the file to the original location where the data came from or a child key of the current node. Importing to a child key of the current node is not very useful as the following dialog shows.

Export all FTP Sites to a ASCII Text File
This option will export all FTP sites to a text file, this includes all properties for all of the FTP sites including the MASTER FTP properties.
Export all Web Sites to a ASCII Text File
This option will export all Web sites to a text file, this includes all properties for all of the web sites including the MASTER WWW properties.
|