Embedded graph database export to remote neo4j server

1,670 views
Skip to first unread message

Samwillie

unread,
Apr 25, 2012, 12:41:38 PM4/25/12
to Neo4j
Hi,

I have a standalone maven web project that creates and populates an
embedded graph database....

String dbPath = "target/neo4j-db";
graphDbService = new EmbeddedGraphDatabase(dbPath);

Now, I have installed neo4j server on another remote server (debian).
How do I migrate this standalone embedded graph database to the remote
neo4j server on debian?

Many thanks for your reply,

Michael Hunger

unread,
Apr 25, 2012, 2:18:40 PM4/25/12
to ne...@googlegroups.com
You just copy the db directory content over to the servers data/graph.db


Sent from mobile device

Daniel Cox

unread,
Apr 25, 2012, 3:09:48 PM4/25/12
to ne...@googlegroups.com
Hey Samwillie,

You grab that embedded graph database and put it wherever you want to on your server, and then go hunting for the file "neo4j-server.properties" in your server conf directory, and point the "org.neo4j.server.database.location" property to it.

Then when you start the server with "/path/to/neo4j start", it'll use that database.
-Daniel

Samwillie

unread,
Apr 26, 2012, 9:59:43 AM4/26/12
to Neo4j
Thanks Michael!

On Apr 25, 8:18 pm, Michael Hunger <michael.hun...@neopersistence.com>
wrote:
> You just copy the db directory content over to the servers data/graph.db
>
> Sent from mobile device
>
> Am 25.04.2012 um 18:41 schrieb Samwillie <pnku...@gmail.com>:
>
>
>
>
>
>
>
> > Hi,
>
> > I have a standalone maven web project that creates and populates an
> >embeddedgraph database....
>
> >     String dbPath = "target/neo4j-db";
> >     graphDbService = new EmbeddedGraphDatabase(dbPath);
>
> > Now, I have installed neo4j server on anotherremoteserver (debian).

Samwillie

unread,
Apr 26, 2012, 9:59:57 AM4/26/12
to Neo4j
Thanks Daniel!

Samwillie

unread,
Apr 27, 2012, 6:22:21 AM4/27/12
to Neo4j
Hi Michael,

I tried copying the db directory content over to the serviers data/
graph.db, But I don't see my data in the webadmin - I am sure the
nodes and index is in, because I see my index folders.

Any reasons why I can't see my data through webadmin?

Greets

On Apr 25, 8:18 pm, Michael Hunger <michael.hun...@neopersistence.com>
wrote:
> You just copy the db directory content over to the servers data/graph.db
>
> Sent from mobile device
>

Michael Hunger

unread,
Apr 27, 2012, 7:37:21 AM4/27/12
to ne...@googlegroups.com
like this: ?

cd target/test-db
cp -r * server/data/graph.db

Samwillie

unread,
Apr 27, 2012, 9:12:51 AM4/27/12
to Neo4j
Thanks Michael! Now I see them in the web-admin!

On Apr 27, 1:37 pm, Michael Hunger <michael.hun...@neotechnology.com>
wrote:

James Pott

unread,
Sep 15, 2013, 11:15:03 PM9/15/13
to ne...@googlegroups.com
Hi Michael,

This suggestion still doesn't work for me. I'm moving graph.db from embedded community 1.9.3 to enterprise 1.9.3.

cheers 
neurofen

Vineel Yalamarthy

unread,
Feb 8, 2014, 1:32:57 AM2/8/14
to ne...@googlegroups.com
Hi Michael

Could you please tell me,what do you mean by db directory. I understood the target destination.I didn't get the source ?

Please explain. This will be of great help to me.

Regards
Vineel

Michael Hunger

unread,
Feb 8, 2014, 12:20:00 PM2/8/14
to ne...@googlegroups.com
The directory that you give to neo4j embedded when you create the EmbeddedGraphDatabase instance.

That directory has to be copied to neo4j server, to /path/to/server/data/graph.db

Michael

--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Vineel Yalamarthy

unread,
Feb 8, 2014, 3:17:53 PM2/8/14
to michael...@neopersistence.com, ne...@googlegroups.com
Hi Michael.

Just let me confirm with you again,

Suppose in my Java program(embedded DB creation function), I gave the folder as X.

So I need to push this X to the remote machine,where my NEO4J is running. 

I din't correctly understand what is the target directory. Could yu please tell me clearly.

Regards
Venkata Vineel




--
You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/hTa93ROAFJo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--




Thanks and Regards,
Venkata Vineel, Student  ,School of Computing
Research Assistant, Scientific Computing and Imaging Institute 
Mobile : +1-385-2109-788

V

unread,
Feb 9, 2014, 5:04:26 PM2/9/14
to ne...@googlegroups.com, michael...@neopersistence.com
Hello,

Yes, that directory "X" has all the graph database files which are created when you create nodes and relationships and indexes etc. Find where "X" is and compress it, Zip it, Tar it, whatever you want.

Then transfer it to the server where you are running Neo4J server. The way you do this depends on that remote server but something like using scp should work.
Once you have transferred the file decompress it and put the graph.db directory in the <neo4j_home>/data/ directory.

The names of the directories are important.

Hope that helps.

Vineel Yalamarthy

unread,
Feb 10, 2014, 3:22:18 AM2/10/14
to ne...@googlegroups.com, Michael Hunger
Sir
Thanks for good response. No need to change any configurations or properties etc right?

Regards
Venkata Vineel
Reply all
Reply to author
Forward
0 new messages