This document is archived and information here might be outdated.  Recommended version.


IDataServerManagerAdmin.BackupGeodatabase Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesGDB > ESRI.ArcGIS.DataSourcesGDB > Interfaces > ID > IDataServerManagerAdmin Interface > IDataServerManagerAdmin.BackupGeodatabase Method
ArcGIS Developer Help

IDataServerManagerAdmin.BackupGeodatabase Method

Performs a full backup on the specified Geodatabase.

[Visual Basic .NET]
Public Function BackupGeodatabase ( _
    ByVal gdbName As String, _
    ByVal backupFileName As String, _
    ByVal backupName As String, _
    ByVal description As String _
) As Boolean
[C#]
public bool BackupGeodatabase (
    string gdbName,
    string backupFileName,
    string backupName,
    string description
);
[C++]
HRESULT BackupGeodatabase(
  BSTR gdbName,
  BSTR backupFileName,
  BSTR backupName,
  BSTR description
);
[C++]
Parameters
gdbName [in]

gdbName is a parameter of type BSTR backupFileName [in]
backupFileName is a parameter of type BSTR backupName [in]
backupName is a parameter of type BSTR description [in]
description is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

This method backs up a Geodatabase. 

Remarks

You must specify the Geodatabase to be backed up, the name of the backup file to be created and a name identifying the backup itself. The description parameter is optional and may be set to 0.

If the Geodatabase has been set to something other than simple recovery model, then this method will fail and the IsSimpleRecoveryModel parameter will be set to TRUE.

You must be a server administrator or have geodatabase admin permissions (esriPermAdmin) to perform this operation.

 

 

 

See Also

IDataServerManagerAdmin Interface