Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-05-2021 08:24 AM
Neo4j 4.3
Desktop 1.2.7
I want to be able to create a database, and then either drop an already existing database and rename the new database that of the recently dropped database, or create a duplicate of the newly created database and give it the name of the recently dropped database.
Ideally I would like to, in some form, save an instance or the database that is to be dropped/replaced, in case of any issues during the process, the procedure can then revert back to the original database.
04-05-2021 11:33 AM
Backup the existing database into data/dumps folder by running this command in the terminal window:
bin/neo4j-admin backup --backup-dir=data/dumps --database=xyz
Restore this backup as a different database:
bin/neo4j-admin restore --from=data/dumps/xyz --database=xyzz --force
04-05-2021 01:13 PM
or if this is a single instance you might want to consider using
04-15-2021 10:19 AM
i have tried using these listed above but when creating the database i get an error:
04-15-2021 12:04 PM
@matthew.cash
What version of Neo4j?
Does the logs/debug.log provide any detail as to why it doesnt come up?
04-19-2021 09:59 AM
This is what I am seeing in the logs:
> 2021-04-19 16:57:30.996+0000 INFO [c.n.d.DbmsReconciler] Database allnew is requested to transition from EnterpriseDatabaseState{databaseId=DatabaseId{2cedd4d8[allnew] }, operatorState=STOPPED, failed=true} to EnterpriseDatabaseState{databaseId=DatabaseId{2cedd4d8[allnew] }, operatorState=STARTED, failed=false}
> 2021-04-19 16:57:30.996+0000 WARN [c.n.d.DbmsReconciler] Attempting to reconcile database allnew to state 'online' but has previously failed. Manual force is required to retry.
> 2021-04-19 16:57:30.996+0000 ERROR [c.n.d.DbmsReconciler] Encountered error when attempting to reconcile database allnew from state 'EnterpriseDatabaseState{databaseId=DatabaseId{2cedd4d8[allnew] }, operatorState=STOPPED, failed=true}' to state 'online' An error occurred! Unable to start database with name `allnew`.
> org.neo4j.dbms.api.DatabaseManagementException: An error occurred! Unable to start database with name `allnew`.
> Caused by: java.lang.RuntimeException: java.nio.file.AccessDeniedException: /data/databases/allnew/neostore
> Caused by: java.nio.file.AccessDeniedException: /data/databases/allnew/neostore
All the sessions of the conference are now available online