public class FBNBackupManager extends FBServiceManager implements NBackupManager
BUFFER_SIZE| Constructor and Description |
|---|
FBNBackupManager()
Create a new instance of
FBNBackupManager based on the default GDSType. |
FBNBackupManager(GDSType gdsType)
Create a new instance of
FBNBackupManager based on a given GDSType. |
FBNBackupManager(java.lang.String gdsType)
Create a new instance of
FBNBackupManager based on a given GDSType. |
| Modifier and Type | Method and Description |
|---|---|
void |
addBackupFile(java.lang.String backupFile)
Add additional backup files.
|
void |
backupDatabase()
Perform the backup operation.
|
void |
clearBackupFiles()
Clear the information about backup files.
|
void |
restoreDatabase()
Perform the restore operation.
|
void |
setBackupFile(java.lang.String backupFile)
Sets the location of the backup file.
|
void |
setBackupGuid(java.lang.String guid)
Sets the backup GUID (Firebird 4 and higher only).
|
void |
setBackupLevel(int backupLevel)
Sets the backup level (0 = full, 1..n = incremental)
|
void |
setInPlaceRestore(boolean inPlaceRestore)
Enables in-place restore.
|
void |
setNoDBTriggers(boolean noDBTriggers)
Sets the option no database triggers when connecting at backup or in-place restore.
|
attachDatabase, attachServiceManager, createRequestBuffer, executeServicesOperation, executeServicesOperation, getAuthPlugins, getCharSet, getDatabase, getDbCryptConfig, getHost, getLogger, getPassword, getPort, getServerVersion, getServiceName, getUser, getWireCrypt, isWireCompression, queueService, setAuthPlugins, setCharSet, setDatabase, setDbCryptConfig, setHost, setLogger, setPassword, setPort, setUser, setWireCompression, setWireCryptclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetDatabasegetAuthPlugins, getCharSet, getDatabase, getDbCryptConfig, getHost, getLogger, getPassword, getPort, getServerVersion, getUser, getWireCrypt, isWireCompression, setAuthPlugins, setCharSet, setDbCryptConfig, setHost, setLogger, setPassword, setPort, setUser, setWireCompression, setWireCryptpublic FBNBackupManager()
FBNBackupManager based on the default GDSType.public FBNBackupManager(java.lang.String gdsType)
FBNBackupManager based on a given GDSType.gdsType - type must be PURE_JAVA, EMBEDDED, or NATIVEpublic FBNBackupManager(GDSType gdsType)
FBNBackupManager based on a given GDSType.gdsType - type must be PURE_JAVA, EMBEDDED, or NATIVEpublic void setBackupFile(java.lang.String backupFile)
NBackupManager
Warning: this method behaves identical to NBackupManager.addBackupFile(String).
setBackupFile in interface NBackupManagerbackupFile - the location of the backup file.public void addBackupFile(java.lang.String backupFile)
NBackupManagerSpecifying multiple backup files is only valid for restore, for backup only the first file is used.
Use NBackupManager.clearBackupFiles() to clear earlier backup files.
addBackupFile in interface NBackupManagerbackupFile - the location of the backup file.public void clearBackupFiles()
NBackupManagerNBackupManager.addBackupFile(String) method.clearBackupFiles in interface NBackupManagerpublic void backupDatabase()
throws java.sql.SQLException
NBackupManagerbackupDatabase in interface NBackupManagerjava.sql.SQLException - if a database error occurs during the backuppublic void restoreDatabase()
throws java.sql.SQLException
NBackupManagerrestoreDatabase in interface NBackupManagerjava.sql.SQLException - if a database error occurs during the restoreNBackupManager.restoreDatabase()public void setBackupLevel(int backupLevel)
NBackupManagersetBackupLevel in interface NBackupManagerbackupLevel - backup level (e.g. 0 = full backup, 1 = level 1 incremental backup based on level 0 backuppublic void setBackupGuid(java.lang.String guid)
NBackupManagerThe backup GUID is the GUID of a previous backup of the (source) database. This is used by Firebird to backup the pages modified since that backup.
This setting is mutually exclusive with NBackupManager.setBackupLevel(int), but this is only checked server-side.
setBackupGuid in interface NBackupManagerguid - A GUID string of a previous backup, enclosed in braces.public void setNoDBTriggers(boolean noDBTriggers)
NBackupManagersetNoDBTriggers in interface NBackupManagernoDBTriggers - true disable db triggers during backup or in-place restore.public void setInPlaceRestore(boolean inPlaceRestore)
NBackupManagersetInPlaceRestore in interface NBackupManagerinPlaceRestore - true to enable in-place restoreCopyright © 2001-2022 Jaybird (Firebird JDBC/JCA) team. All rights reserved.