|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.backup.OnlineBackup
public class OnlineBackup
This class encapsulates the information needed to perform an online backup against a running Neo4j instance configured to act as a backup server. This class is not instantiable, instead factory methods are used to get instances configured to contact a specific backup server against which all possible backup operations can be performed. All backup methods return the same instance, allowing for chaining calls.
| Method Summary | |
|---|---|
static OnlineBackup |
from(String hostNameOrIp)
Factory method for this class. |
static OnlineBackup |
from(String hostNameOrIp,
int port)
Factory method for this class. |
OnlineBackup |
full(String targetDirectory)
Performs a full backup storing the resulting database at the given directory. |
OnlineBackup |
full(String targetDirectory,
boolean verification)
Performs a full backup storing the resulting database at the given directory. |
OnlineBackup |
full(String targetDirectory,
boolean verification,
org.neo4j.kernel.configuration.Config tuningConfiguration)
Performs a full backup storing the resulting database at the given directory. |
Map<String,Long> |
getLastCommittedTxs()
Provides information about the last committed transaction for each data source present in the last backup operation performed by this OnlineBackup. |
OnlineBackup |
incremental(GraphDatabaseAPI targetDb)
Performs an incremental backup on the supplied target database. |
OnlineBackup |
incremental(String targetDirectory)
Performs an incremental backup on the database stored in targetDirectory. |
OnlineBackup |
incremental(String targetDirectory,
boolean verification)
Performs an incremental backup on the database stored in targetDirectory. |
boolean |
isConsistent()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static OnlineBackup from(String hostNameOrIp,
int port)
hostNameOrIp - The hostname or the IP address of the backup serverport - The port at which the remote backup server is listening
public static OnlineBackup from(String hostNameOrIp)
hostNameOrIp - The hostname or IP address of the backup server
public OnlineBackup full(String targetDirectory)
targetDirectory - The directory in which to store the database
public OnlineBackup full(String targetDirectory,
boolean verification)
targetDirectory - The directory in which to store the databaseverification - a boolean indicating whether to perform verification on the created backup
public OnlineBackup full(String targetDirectory,
boolean verification,
org.neo4j.kernel.configuration.Config tuningConfiguration)
targetDirectory - The directory in which to store the databaseverification - a boolean indicating whether to perform verification on the created backuptuningConfiguration - The Config to use when running the consistency check
public OnlineBackup incremental(String targetDirectory)
targetDirectory - A directory holding a complete database previously obtained from the backup server.
public OnlineBackup incremental(String targetDirectory,
boolean verification)
targetDirectory - A directory holding a complete database previously obtained from the backup server.verification - If true, the verification phase will be run.
public OnlineBackup incremental(GraphDatabaseAPI targetDb)
targetDb - The database on which the incremental backup is to be applied
public Map<String,Long> getLastCommittedTxs()
public boolean isConsistent()
|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||