neo4j-backup — Neo4j Backup Tool
A tool to perform live backups over the network from a running Neo4j graph database onto a local filesystem. Backups can be either full or incremental. The first backup must be a full backup, after that incremental backups can be performed.
The source(s) are given as URIs in a special format, the target is a filesystem location.
Backup sources are given in the following format:
<running mode>://<host>[:<port>][,<host>[:<port>]]…
Note that multiple hosts can be defined.
6362
will be used.
Backups can only be performed on databases which have the configuration parameter enable_online_backup=true
set.
That will make the backup service available on the default port (6362
).
To enable the backup service on a different port use for example enable_online_backup=port=9999
instead.
# Performing a full backup neo4j-backup -full -from single://192.168.1.34 -to /mnt/backup/neo4j-backup # Performing an incremental backup neo4j-backup -incremental -from single://freja -to /mnt/backup/neo4j-backup # Performing an incremental backup where the service is registered on a custom port neo4j-backup -incremental -from single://freja:9999 -to /mnt/backup/neo4j-backup # Performing a full backup from HA cluster, specifying two possible coordinators ./neo4j-backup -full -from ha://oden:2181,loke:2181 -to /mnt/backup/neo4j-backup # Performing an incremental backup from HA cluster, specifying only one coordinator ./neo4j-backup -incremental -from ha://oden:2181 -to /mnt/backup/neo4j-backup # Performing an incremental backup from HA cluster with a specific name # (specified by neo4j configuration 'ha.cluster_name') ./neo4j-backup -incremental -from ha://balder:2181 -to /mnt/backup/neo4j-backup -cluster my-cluster
Copyright © 2012 Neo Technology