How can I back up the Microsoft IIS metabase from the command line in Windows 2000 and later?

A. Win2K includes a Visual Basic (VB) script called metaback.vbs for performing a command-line backup of the IIS metabase. The script resides in the \inetpub\iissamples\sdk\admin folder. To run the script, open a command prompt and type

cscript metaback.vbs <backup name>

where <backup name> is the name of the backup file you want to create.

Windows Server 2003 includes a VB script called iisback.vbs that resides in the system32 folder for performing a command-line backup of the IIS metabase. To run the script, open a command prompt and type

cscript iisback.vbs /backup /b <backup name>

The /b switch specifies the backup name. Type

cscript /iisback.vbs /backup /?

to see other available options (e.g., automatic versioning) for the iisback.vbs script.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish