↑ Return to Administration

Print this Page

Metabase- IIS backup resotore


Meta base is roughly equivalent to the registry of IIS, it holds all the configuration information for IIS. In previous versions, the meta-base was binary file that could be edited only by the meta-base editor, part of the resource kit. In IIS 6, meta-base is a XML text file that can be edited with Notepad. The meta-base is stored in windowssystem32inetsrv by the name Meta-base.xml and corresponding schema for Meta-base called MBSchema.xml

Meta-base History:

The meta-base is backed up and “versioned” periodically by IIS. Two version numbers are used for the meta-base in history folder: a major and a minor version number. The name of the backup files are Meta-Base_[10 digit major version number]_[10 digit minor version number].xml and MBSchema_[10 digit major version number]_[10 digit minor version number].xml (for example, MBSchema_0000000160_0000000000.xml). By default, ten copies of the meta-base files are stored. This allows the meta-base to be rolled back to any of these previous versions. The number of meta-base versions kept is configurable by editing the MaxHistoryFiles property in the meta-base. Each time the meta-base is saved, a backup copy of the meta-base and corresponding schema are made in the history folder.IIS checks that how many history pairs are in History folder if more file are present then maxhistoryfiles, IIS delete the oldest pair. Default path of History Folder Windowssystem32inetsrvhistory.

History path can be configurable by changing registry key under HKEY_LOCAL_MACHINE Software MicrosoftInetMGRParameters. Add a new string value named MetadataFile. The value of the Metadata File key should be the absolute path name of the location to which you want to store the meta-base files (for example: D:IISMetadataThisIsMyMeta-base.xml). When you change the location of the meta-base files, make sure all the meta-base files are moved to the new location, or else when IIS starts up, it will create the default meta-base in the new location. The changes to the meta-base location will not take effect until the IIS Admin and World Wide Web Publishing service are restarted.

Meta-base Auditing: IIS 6.0 includes a meta-base auditing feature that allows tracking of each change that is made to the meta-base. Meta-base auditing is enabled by enabling an audit access control entry (ACE) on a node in the meta-base. By this you can determine who made changes, when made changes, what changes made, IP number.

Backing Up and Restoring the Meta-base: Meta-base history files can be used only on the computer on which they were created, while backups can be restored to another computer. For backup and restore, highlight the computer in IIS, right click choose Action | All Tasks | Backup /Restore Configuration. On the pop up window will come, here you can perform Create backup, restore and delete backup.

While creating backup, you must specify a backup name. The backup file will be located in System32InetsrvMetaBack. The meta-base has .MD0 extension, and the schema has a .SC0 extension. Each backup with the same name will increment the number in the extension to preserve the previous backup. The password option encrypts the backup with the password you specify. It can be decrypted only with the same password. This allows a web site to be moved from one computer to another, while keeping the meta-base secure.

Caution Moving the meta-base to another computer works well only if the drive configuration is the same on the new computer. Because path names are stored in the meta-base, if your content is on a different drive, the web site won’t work properly. Extra care must also be taken if the site has an SSL certificate.

To restore a configuration, chooses that backup, and then clicks the Restore button. When you click Restore, a warning will pop up; informing you that all your settings will be wiped out and all the services will be stopped and restarted.

Meta-base Back UP by Tool

(IIS Meta-base Editor Tool to Export/Import the Meta-base) àMeta-base editor tool can used to make modification directly to the meta-base property. The Meta-base editor can be used to export Meta-base 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 meta-base editor tool menu option you will get meta-base export, import option. This option will allow you to import a previously exported Meta-base text file. The import function can overwrite any existing settings in the Meta-base

Another way to back up the meta-base is to use Windows Backup Utility. The Backup Utility uses the Meta-base Snapshot Writer automatically to make sure the Meta-base.xml & MBSchema.xml files are successfully backed up.

Permanent link to this article: http://www.techxpress.in/iis-6-0-2/administration/metabase-iis-backup-resotore/

Leave a Reply

Bookmark this page