The IIS metabase is a large and complicated structure, and has much vital information about your Internet sites. So that you can easily protect that important data, backing up the metabase has been made into a relatively easy task. This tool demonstrates how you can create a tool that makes backing up the metabase even easier.
All metabase backup functionality is provided at the IIS://LocalHost level, so this string is passed to GetObject to get a reference to the local machine object. The Backup method is then invoked with several parameters, including a number of flags, a location, and a version number.
The location parameter refers to a name that you give to your set of backup versions. Backup implementation will probably change in future releases, but at the time of this writing, all backups are stored in the same directory. Therefore, it might be helpful to think of location as the name of a series of backup snapshots.
The backup version parameter can be explicit, or you can use one of several special values, the most important being &HFFFFFFFF. This value, which equals -1 in VBScript, indicates that the Backup method should assign a version number to this backup that is one higher than the highest version number found for that location.
This script is available in the IIS samples directory, at ...\admin\metaback.vbs.