|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NBackupManager
Implements the incremental backup and restore functionality of NBackup via the Firebird Services API.
Method Summary | |
---|---|
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. |
Methods inherited from interface org.firebirdsql.management.ServiceManager |
---|
getDatabase, getHost, getLogger, getPassword, getPort, getUser, setHost, setLogger, setPassword, setPort, setUser |
Method Detail |
---|
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
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |