This document is archived and information here might be outdated. Recommended version. |
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
This method backs up a Geodatabase.
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.