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...