First test if the neo4j is ready and espectateur
database doesn't exists:
docker exec --interactive --tty sematic-annotation-neo4j cypher-shell -u neo4j -p espectateurneo4j "SHOW DATABASES"
Restore the database with :
docker exec --interactive --tty sematic-annotation-neo4j neo4j-admin load --from=/dump/espectateur.dump --database espectateur
Create the database after the load operation finishes :
docker exec --interactive --tty sematic-annotation-neo4j cypher-shell -u neo4j -p espectateurneo4j "CREATE DATABASE espectateur"
- https://neo4j.com/docs/operations-manual/4.4/backup-restore/restore-dump/
- https://neo4j.com/docs/cypher-manual/4.4/databases/#administration-databases-stop-database