sh6dgw
Last Updated: February 25, 2016
·
2.955K
· akalyaev

Dump neo4j database

Community edition

The only solution I've found is to compress and copy the /var/lib/neo4j-server/data/graph.db directory.

$ tar -cvzf /tmp/neo4j-backup/2013-11-07-graph.gb.tar.gz /var/lib/neo4j-server/data/graph.db/

Enterprise edition

If you are using enterprise edition - you are lucky. Simply use neo4j-backup tool. It supports full and incremental backups. See docs for details.

$ neo4j-backup -from single://192.168.1.34 -to /tmp/backup/neo4j-backup

After that, you could move the backup to another server over ssh using scp.

2 Responses
Add your response

26133

Hello! Have you tried to restore your database from the backup for Community Edition? Thanks!

over 1 year ago ·
26134

I am not using this DB anymore, but my guess is to simply copy the archive and restore it onto /var/lib/neo4j-server/data/graph.db/

over 1 year ago ·