public interface NBackupManager extends ServiceManager
Modifier and Type | Method and Description |
---|---|
void |
addBackupFile(java.lang.String backupFile)
Add the file to the backup of the specified size.
|
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 |
setBackupLevel(int level)
Sets the backup level (0 = full, 1..n = incremental)
|
void |
setDatabase(java.lang.String path)
Set the path to the database.
|
void |
setNoDBTriggers(boolean noDBTriggers)
Sets the backup option no database triggers when connecting
at backup.
|
getDatabase, getHost, getLogger, getPassword, getPort, getUser, setHost, setLogger, setPassword, setPort, setUser
void setBackupFile(java.lang.String backupFile)
backupFile
- the location of the backup file.void addBackupFile(java.lang.String backupFile)
backupFile
- the location of the backup file.void clearBackupFiles()
addBackupFile(String)
method.void setDatabase(java.lang.String path)
setDatabase
in interface ServiceManager
path
- path to the database file.
In case of backup, value specifies the path of the existing database on the server that will be backed up.
In case of restore, value specifies the path of the database where the backup will be restored to.
void backupDatabase() throws java.sql.SQLException
java.sql.SQLException
- if a database error occurs during the backupvoid restoreDatabase() throws java.sql.SQLException
java.sql.SQLException
- if a database error occurs during the restorevoid setBackupLevel(int level)
level
- backup level (e.g. 0 = full backup, 1 = level 1 incremental
backup based on level 0 backupvoid setNoDBTriggers(boolean noDBTriggers)
noDBTriggers
- Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.