Performs a streaming backup of an instance, including all the attached databases, to a directory. With multiple backup methods supported by the engine, this is the simplest and most encapsulated function.
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Sub JetBackupInstance ( _
instance As JET_INSTANCE, _
destination As String, _
grbit As BackupGrbit, _
statusCallback As JET_PFNSTATUS _
)
'Usage
Dim instance As JET_INSTANCE
Dim destination As String
Dim grbit As BackupGrbit
Dim statusCallback As JET_PFNSTATUSApi.JetBackupInstance(instance, _
destination, grbit, statusCallback)
public static void JetBackupInstance(
JET_INSTANCE instance,
string destination,
BackupGrbit grbit,
JET_PFNSTATUS statusCallback
)
Parameters
-
instance
Type: Microsoft.Isam.Esent.Interop.JET_INSTANCEThe instance to backup.
-
destination
Type: System.StringThe directory where the backup is to be stored. If the backup path is null to use the function will truncate the logs, if possible.
-
grbit
Type: Microsoft.Isam.Esent.Interop.BackupGrbitBackup options.
-
statusCallback
Type: Microsoft.Isam.Esent.Interop.JET_PFNSTATUSOptional status notification callback.
See also
Reference
Microsoft.Isam.Esent.Interop namespace
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
