How do I automate the copy of auth files in a clustered environment

In a clustered Neo4j implementation, user authentication files are recorded in each instance at $NEO4J_HOME/data/dbms. Since this defined per each instance in the cluster if for example you change the password of a user on instance 1, for consistency you should also then change the users password on the other instances.

Attached is a tgz file which can be used so as to automate the copying of $NEO4J_HOME/data/dbms from each instance to the other using linux rsync and then automating this to run via cron on a regular interval from each instance in the cluster.

This package is provided AS-IS.

Installation is as follows:

  1. copy the .tgz to the linux server where instance 1 is defined.
  2. untar the package as tar ”’
    • Last Modified: 2020-10-22 22:13:22 UTC by Dana Canzano.
    • Relevant for Neo4j Versions: 2.3, 3.0, 3.1.
    • Relevant keywords logging, server.