Dump and load databases (offline)

You can use the neo4j-admin database dump command to make a full backup (an archive) of an offline database(s) and neo4j-admin database load to load it back into a Neo4j deployment. These operations are performed in offline maintenance mode.

Dump the neo4j and system databases

  1. Put your Neo4j in offline mode.

  2. Dump neo4j and system databases:

    neo4j-admin database dump --expand-commands system --to-path=/backups && neo4j-admin database dump --expand-commands neo4j --to-path=/backups
  3. Put your Neo4j back to online mode.

  4. Verify that Neo4j is working by refreshing Neo4j Browser.

For information about the command syntax, options, and usage, see Back up an offline database.

Load the neo4j and system databases

  1. Put your Neo4j in offline mode..

  2. Run neo4j-admin database load commands:

    neo4j-admin database load --expand-commands system --from-path=/backups && neo4j-admin database load --expand-commands neo4j --from-path=/backups

    For information about the command syntax, options, and usage, see Restore a database dump.

  3. Put your Neo4j back to online mode.

  4. Verify that Neo4j is working by refreshing Neo4j Browser.