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
-
Put your Neo4j in offline mode.
-
Dump
neo4j
andsystem
databases:neo4j-admin database dump --expand-commands system --to-path=/backups && neo4j-admin database dump --expand-commands neo4j --to-path=/backups
-
Put your Neo4j back to online mode.
-
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
-
Put your Neo4j in offline mode..
-
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.
-
Put your Neo4j back to online mode.
-
Verify that Neo4j is working by refreshing Neo4j Browser.