Backup/restore with Neo4j Community

An important difference between the dump and backup commands is that backup can be run while the Neo4j instance is live. For dump to run, the instance must be stopped. Therefore, the first step to taking a backup with the Neo4j Community Edition is to stop Neo4j:

    bin/neo4j stop
    Stopping Neo4j.. stopped  

Next, we will run the following commands from the neo4j-admin tool:

    mkdir /backups/astronaut.db-backup/        bin/neo4j-admin dump --database=graph.db --to=backups/astronaut.db-backup/2017-09-11.dump
    bin/neo4j start  
The backup directory must exist before the dump command is run.

Before getting into the load functionality, let's create a new node for the ISS-53/54 (Soyuz) mission. From within Neo4j Browser, ...

Get Seven NoSQL Databases in a Week now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.