Book Image

Building web applications with Python and Neo4j

By : Sumit Gupta
Book Image

Building web applications with Python and Neo4j

By: Sumit Gupta

Overview of this book

Table of Contents (14 chapters)
Building Web Applications with Python and Neo4j
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 -host <IP-ADDRESS> -port <PORT#> -to <DIR location on remote server>.
  • Incremental backup: Run the same command that we used to take the full backup and neo4j-backup will only copy the updates from the...