Class OAutomaticBackup
java.lang.Object
com.orientechnologies.orient.server.handler.OAutomaticBackup
- All Implemented Interfaces:
OService,OServerPlugin
Automatically creates a backup at configured time. Starting from v2.2, this component is able
also to create incremental backup and export of databases. If you need a mix of different modes,
configure more instances of the same component.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic interfacestatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig(OServer iServer, OServerParameterConfiguration[] iParams) Configures the handler.protected voidexportDatabase(String dbName, String iPath, ODatabaseDocumentInternal db) protected voidfullBackupDatabase(String dbName, String iPath, ODatabaseDocumentInternal db) protected StringgetFileName(String dbName) getName()protected voidincrementalBackupDatabase(String dbURL, String iPath, ODatabaseDocumentInternal db) voidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.server.plugin.OServerPlugin
getConfigClass, getContent, onAfterClientRequest, onBeforeClientRequest, onClientConnection, onClientDisconnection, onClientError, onSocketAccepted, onSocketDestroyed, sendShutdown
-
Constructor Details
-
OAutomaticBackup
public OAutomaticBackup()
-
-
Method Details
-
config
Description copied from interface:OServerPluginConfigures the handler. Called at startup.- Specified by:
configin interfaceOServerPlugin
-
incrementalBackupDatabase
protected void incrementalBackupDatabase(String dbURL, String iPath, ODatabaseDocumentInternal db) throws IOException - Throws:
IOException
-
fullBackupDatabase
protected void fullBackupDatabase(String dbName, String iPath, ODatabaseDocumentInternal db) throws IOException - Throws:
IOException
-
exportDatabase
protected void exportDatabase(String dbName, String iPath, ODatabaseDocumentInternal db) throws IOException - Throws:
IOException
-
getFileName
-
getName
-
registerListener
-
unregisterListener
-