I run a 3 server CORE cluster and I regularly seed an identical cluster with the production data for testing purposes. I seed from a backup created using
neo4j-admin backup. In the past I've always used the following procedure to seed the cluster:
- stop the cluster
neo4j-admin unbind --database=graph.dbon each server
- delete graph.db on each server
- copy the backup directory to graph.db on each server
- start the cluster
Recently I started using
neo4j-admin restore instead of just copying the backup directory to graph.db. Every time I do this, I run a md5 digest command on the backup directory and the resulting graph.db directory and every time they are identical.
So my question is: does
neo4j-admin restore do anything other than copy the backup files?
I ask because my database is 120Gb so it's much faster to directly
scp the backup to the
graph.db on the other servers instead of having to
This is the command I use to generate the digest for a whole directory. It only works if your current working directory is the directory you are generating the digest for:
find "." -type f -print0 | sort -z | xargs -r0 md5sum | md5sum