2025-04-27 07:49:33 -04:00

136 lines
5.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>Backup</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
TempString = navigator.appVersion
if (navigator.appName == "Microsoft Internet Explorer"){
// Check to see if browser is Microsoft
if (TempString.indexOf ("4.") >= 0){
// Check to see if it is IE 4
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else {
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
}
}
else if (navigator.appName == "Netscape") {
// Check to see if browser is Netscape
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
//-->
</script>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Window_OnLoad()
Dim frmContents
On Error Resume Next
If Not Parent Is Nothing Then
Set frmContents = Parent.Contents
If Not frmContents Is Nothing Then
frmContents.Window.TOCSynch_Click
End If
End If
End Sub
//--></SCRIPT><META NAME="DESCRIPTION" CONTENT="Internet Information Services reference information">
<META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "<http://www.rsac.org/ratingsv01.html>" l comment "RSACi North America Server" by "inet@microsoft.com <mailto:inet@microsoft.com>" r (n 0 s 0 v 0 l 0))'>
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="MS-IT-LOC" Content="Internet Information Services">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H3><A NAME="_k2_backup"></A><SUP></SUP>Backup</H3>
<P>You can use the <B>Backup</B> method of the <A HREF="/iishelp/iis/htm/asp/aore2xpu.htm"><B>IIsComputer</B></A> object to back up the metabase to a location you specify by providing a backup location name of up to 100 characters in length. Multiple metabase backups can be stored in a backup location.</P>
<H6>Syntax</H6>
<P><B>IIsComputer</B>.<B>Backup</B> <I>BackupLocation</I>, <I>BackupVersion</I>, <I>BackupFlags</I> </P>
<P>&nbsp;</P>
<H6>Parameters</H6>
<DL>
<DT><I>BackupLocation</I></DT>
<DD>A string of up to 100 characters that specifies the backup location. The storage mechanism will be determined by IIS. If an empty string is specified, the backup will be stored in the default location.<BR>
</DD>
<DT><I>BackupVersion</I></DT>
<DD>Specifies the version number to be assigned to the backup. Must be less than or equal to <B>MD_BACKUP_MAX_VERSION</B>. Can be set to one of the following values.
<TABLE border=0 cellpadding=5 cols=2 frame=box rules=all>
<TR VALIGN="top">
<TD width=50%><B>MD_BACKUP_HIGHEST_VERSION</B></TD>
<TD width=50%>Overwrite the highest existing backup version in the specified backup location.</TD>
</TR>
<TR VALIGN="top">
<TD width=50%><B>MD_BACKUP_NEXT_VERSION</B></TD>
<TD width=50%>Use the next backup version number available in the specified backup location.</TD>
</TR>
</TABLE><BR>
<BR>
</DD>
<DT><I>BackupFlags</I></DT>
<DD>One or more of the following flags.
<TABLE border=0 cellpadding=5 cols=2 frame=box rules=all>
<TR VALIGN="top">
<TD width=50%><B>MD_BACKUP_FORCE_BACKUP</B></TD>
<TD width=50%>Force the backup even if the <B>SaveData</B> operation specified by <B>MD_BACKUP_SAVE_FIRST</B> fails.</TD>
</TR>
<TR VALIGN="top">
<TD width=50%><B>MD_BACKUP_OVERWRITE</B></TD>
<TD width=50%>Back up even if a backup of the same name and version exists in the specified backup location, overwriting if necessary.</TD>
</TR>
<TR VALIGN="top">
<TD width=50%><B>MD_BACKUP_SAVE_FIRST</B></TD>
<TD width=50%>Perform a <B>SaveData</B> operation before the backup. Default if no flags are specified.</TD>
</TR>
</TABLE><BR>
</DD>
</DL>
<H6>Remarks</H6>
<P>IIS determines the backup storage mechanism, so the backup location name you provide does not necessarily translate to a particular directory, file, or database storage mechanism. As implemented in this release, metabase backups are stored as files in the system32\inetsrv\MetaBack directory.</P>
<P><span class=le><B>Important&nbsp;&nbsp;&nbsp;</B></span>The metabase backup and restore functionality exists for versioning purposes, not for cross-machine replication. However, you are not necessarily restricted to backing up and restoring the computer from which you initiate the process. For more information about backing up the metabase, see "Backing up the Metabase" in the IIS product documentation.</P>
<H6>Code Example</H6>
<PRE><CODE>&lt;%
Dim ComputerObj, iFlags
Set ComputerObj = GetObject("IIS://LocalHost")
'Backup to next available version number.
'Set flags to save the metabase first and
'force the backup even if save fails.
iFlags = (MD_BACKUP_SAVE_FIRST or MD_BACKUP_FORCE_BACKUP)
ComputerObj.Backup "MyBackups", MD_BACKUP_NEXT_VERSION, iFlags
%&gt;
</CODE></PRE>
<H6>See Also</H6>
<P><A HREF="/iishelp/iis/htm/asp/aore79rk.htm"><B>DeleteBackup</B></A>, <A HREF="/iishelp/iis/htm/asp/aore1v8z.htm"><B>EnumBackups</B></A>, <A HREF="/iishelp/iis/htm/asp/aore5ucl.htm"><B>Restore</B></A></P>
<hr class="iis" size="1">
<p align="center"><em><a href="../../../common/colegal.htm">&copy; 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p>
</BODY>
</HTML>