public class OnlineBackup extends Object
| Modifier and Type | Method and Description |
|---|---|
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(org.neo4j.kernel.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() |
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 listeningpublic static OnlineBackup from(String hostNameOrIp)
hostNameOrIp - The hostname or IP address of the backup serverpublic OnlineBackup full(String targetDirectory)
targetDirectory - The directory in which to store the databasepublic 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 backuppublic 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 checkpublic 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(org.neo4j.kernel.GraphDatabaseAPI targetDb)
targetDb - The database on which the incremental backup is to be appliedpublic Map<String,Long> getLastCommittedTxs()
public boolean isConsistent()
Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.