Where Does Neo4j Store Graph Data?
Where self hosted Neo4j keeps graph data and config on Linux servers. Exact folders are covered below.
Last updated
Neo4j is graph database with server storage. The data directory holds nodes, relationships, and indexes. Transaction logs sit beside it. The release version matters for restores.
Same data plus config means same graph. Exact paths vary by Debian versus Docker installs, with conf files deciding roots. Keep backups of data plus logs together. One without the other restores graphs without recent writes. For moves, stop services first to avoid partial dumps. Check the in app storage readout when sizes look wrong on different releases.
Where Neo4j Database stores this, by platform
/var/lib/neo4j/data (graphs plus logs, paths vary)
Graphs live in the data directory with logs beside it. Back up both together with services stopped. Match releases before restore. Browser holds cache only.
Frequently asked questions
How do I migrate Neo4j to a new server?
Back up with neo4j-admin dump plus the data directory with services stopped, then install the same release on the new server before restore. Graphs follow the database. Mixed releases can refuse old stores, so match versions first.
Where are Neo4j graph files stored?
In the data directory on your server with transaction logs beside it. The browser holds login plus query cache only. Export Cypher dumps from admin tools for records, since devices never hold the master graph alone.
Notice an outdated path? Let us know.