neo4j 官方文档有说明,使用 neo4j-admin restore / dump 导出和恢复数据库的时候需要停掉数据,否则会报数据库正在使用的错误:
command failed: the database is in use — stop Neo4j and try again
官方文档这样说:
Restore the database graph.db from the backup located in /mnt/backup/graph.db-backup. Note that the database to be restored must be shut down.
neo4j-home> bin/neo4j stop neo4j-home> bin/neo4j-admin restore --from=http://www.likecs.com/mnt/backup/graph.db-backup --database=graph.db --force neo4j-home> bin/neo4j start