Depending on the version you are using, the way to backup and restore your data will be different.
To back up your data of a community version server, only cold backup (offline) is possible.
A first way, very basic, but not to say DIY, is: first stop your server, then copy the whole $NEO_HOME/data
folder to a secure storage. Then restart your server.
To restore backup data, stop your server, replace the $NEO_HOME/data
folder with your backup, and restart your server.
Another way is to use the neo4j-admin
utility program, installed with the server in $NEO_HOME/bin
:
neo4j-admin dump --to=file --database=optionnalDBName
The to parameter should be a path to a file. The database parameter is optional and only needed if you have more than one database and want to dump a database other than graph.db
.
To restore this dump of data, the command is as follows:
neo4j-admin load from=file