How to add a dump to an existing local db

I have a local (Windows desktop) populated database and I need to add a dump to it

this command scratches the existing db

neo4j-admin database load neo4j --from-path=C:/Users/VG/Desktop --overwrite-destination=true

if I set --overwrite-destination to false, it says the db already exists and fails

neo4j-admin database upload seems to work for Aura db instance only

how to add a dump to an existing local db ?

@v2belleville

Incremental Dump / Load can not be achieved. Load will replace the existing database if it exists

thanks for the input @dana_canzano

that's a very surprising limitation ..

what is the recommended way to merge 2 db ?

@v2belleville

there is no way to merge 2 databases. You could run apoc.export.cypher.*** and then play back the results into a second database

1 Like

If you are using the Neo4j Desktop instance, you can click on the options (3 dots) to the right of the database and select Dump from the menu. As you have discovered, it will not overwrite an existing dump file but you can change the name of the file (e.g., add the date). Earlier versions of the Desktop dump function used to include the date/time to the file name, but that naming convention was removed several versions ago. I will periodically dump my database for recovery options as well as if I'm doing an upgrade of the database version.