Last Updated: February 25, 2016
· 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/ /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:// -to /tmp/backup/neo4j-backup

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

2 Responses
Add your response

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

over 1 year ago ·

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 ·