12.17. Exporting and Importing the Metabase

Problem

You want to export or import a portion of the metabase. This can be useful when you want to clone the configuration of a web site or virtual directory by copying it to another IIS computer.

Solution

Using a graphical user interface

You can export the metabase configuration for an individual web site, all web sites, an individual FTP site, all FTP sites, an individual virtual directory, a file, an individual application pool, or all application pools as follows:

  1. Open Internet Information Services (IIS) Manager.

  2. In the left pane, right-click on the node whose metabase configuration you want to export and select All Tasks Save Configuration to a File.

  3. Type a name for the exported file and, if desired, browse to a different directory where you want to save the file.

  4. Optionally password protect the export file by typing a password and confirming it.

  5. Click OK.

For example, to export the portion of the metabase that contains configuration settings for a web site named My Web Site, do the following:

  1. Open Internet Information Services (IIS) Manager.

  2. In the left pane, right-click on My Web Site and select All Tasks Save Configuration to a File and continue as above.

To import the previously saved configuration for My Web Site back into the Metabase, do the following:

  1. Open Internet Information Services (IIS) Manager.

  2. In the left pane, right-click on Web Sites and select New Web Site (from file).

  3. Type the path to the saved configuration file or ...

Get Windows Server Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.