Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copying a local database from one computer to another ne04j

Tags:

neo4j

I created a database Neo4j on a PC, with many relationships, node, etc how to move/ copy the database from this pc to another? thanks for the help francesco

update1: I have tried to found conf/neo4j-server.properties but i don't have... this is a screenshot of my folder ne04j (It is in Windows document Folder) http://s12.postimg.org/vn4e22s3x/fold.jpg

like image 498
Andrea Avatar asked Sep 18 '14 12:09

Andrea


People also ask

Is neo4j cloud based?

Neo4j Aura is a fully managed, cloud-native graph service, giving developers and data scientists the most trusted, advanced graph tech tools. Available on leading cloud platforms.


2 Answers

Neo4J databases live in your filesystem, you can simply make a copy of the folder in which your Neo4J data is stored. If you are running standalone this folder will be configured in conf/neo4j-server.properties and the line will look something like this:

org.neo4j.server.database.location=data/graph.db

Copy the content of that folder to the graph database folder on your other machine. I'd recommend that your databases are not running when you do this.

like image 125
JohnMark13 Avatar answered Sep 28 '22 09:09

JohnMark13


I believe you're looking for the dump shell command which you can use to export a database into a single Cypher create statement, you'd "dump" the database and then import it on your new machine.

Information on using the command is outlined here: Neo4j docs

like image 24
Andrew Maston Avatar answered Sep 28 '22 10:09

Andrew Maston