Database Reference
In-Depth Information
The Neo4j backup tool is merely a Unix orWindows script (foundin the bin folder ofyour
distribution) fronting a Java application that understands how to connect to one or more
Neo4j backup services. The backup tool can be run from any machine on the network,
providedithastheabilitytoconnecttothebackupservice.Thebackupcommandtakesthe
following format for Unix:
./neo4j-backup -from <source-uri> -to <backup-dir>
For Windows it looks like this:
neo4j-backup -from <source-uri> -to <backup-dir>
The parameters are as follows:
backup-dir —Directory where the backup should be stored. In order to perform a
full backup, this directory needs to be empty. If the backup tool detects a previous
version of a graph database in there, it will attempt an incremental backup.
source-uri —This provides the backup tool with all the information it needs to
connect tothe appropriate backup service, andthis needs tobespecified inthe fol-
lowingformat.(Detailstakenfrommandocsfoundhere: https://github.com/neo4j/
neo4j/blob/2.0-maint/enterprise/backup/src/docs/man/neo4j-backup.1.asciidoc )
<running-mode>://<host>[:port]{,<host>[:port]*}
running-mode:
'single' or 'ha'. 'ha' is for instances in High
Availability mode, 'single' is for standalone databases.
host:
In single mode, the host of a source database; in ha mode,
the cluster address of a cluster member. Note that multiple
hosts can be given when using High Availability mode.
port:
In single mode, the port of a source database backup service;
in ha mode, the port of a cluster instance. If not given, the
default value 6362 will be used for single mode, 5001 for HA
How do I schedule backups?
Neo4j itself doesn't provide any scheduling functionality. It's expected that you'll use an
external scheduling tool (such as cron) to do this for you. Using something like cron, you
Search WWH ::




Custom Search