Backup and recovery

In this section, we will talk about options available for performing backups and restoring Neo4j database.

Backup and recovery is another challenge for distributed systems. Neo4j provides tools and utilities for performing online backup and recovery, which is in sync with the enterprise operational needs. It provides <$NEO4J_HOME>\bin\neo4j-backup as a command-line utility for performing the full and incremental/hot backups.

The following steps need to be performed to enable backups:

  • Enabling online backup: online_backup_enabled should be enabled in <$NEO4J_HOME>\conf\neo4j.properties.
  • Full backup: Create a blank directory on the machine where you want to take the full backup and run the following backup tool:
    <$NEO4J_HOME>\bin\neo4j-backup ...

Get Building Web Applications with Python and Neo4j now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.