Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to take dump of neo4j graph databases?

Tags:

neo4j

I had my all databases stored at a location C:\JATIN DATA\database\neo4jDatabases. How can I take the dump of all databases individually using neo4j Dekstop.

I had already tried neo4j-admin dump --database= --to= this command but getting errors like Neo.ClientError.Statement.SyntaxError: Invalid input 'n': expected (line 1, column 1 (offset: 0)) "neo4j-admin dump --database= --to=" ^

like image 731
jatin patware Avatar asked Jan 28 '23 21:01

jatin patware


2 Answers

Thanks @cybersam and @logisima finally dump is taken successfully. This is the complete command .\bin\neo4j-admin.bat dump --database=graph.db --to=c:\dump\article_citation_graph.dump there was some admin privilege error.

like image 32
jatin patware Avatar answered Feb 12 '23 00:02

jatin patware


neo4j-admin must be run from a terminal command line -- not from the neo4j Browser.

Since you are using the Desktop, you can open a terminal window to the appropriate directory by selecting your neo4j Project from the Projects panel on the left, click the Manage button of the database you want to dump, And then select the Terminal tab.

Once in the Terminal window, you can enter a command like the one suggested by @logisma:

bin/neo4j-admin dump --database=graph.db --to=c:\
like image 167
cybersam Avatar answered Feb 12 '23 01:02

cybersam