cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

how to import dump into existing remote DBMS

jcct100
Node Clone

Hi there,

I am using Neo4j Desktop. I have got a remote database named "Remote DBMS" as shown in the photo. I want to import dump into existing remote DBMS. You can see the dump file is named "dbms-neo4j-Dec-13-2022-10-12-01.dump" in the screenshot. 

I opened the terminal and run this command below

bin/neo4j-admin database upload Remote DBMS --from-path=file:///Users/james/Library/Application Support/Neo4j Desktop/Application/relate-data/projects/project-7732f753-6ffd-4904-8ce5-28ab316a005f/dbms-neo4j-Dec-13-2022-10-12-01.dump --to-uri=neo4j.limetrack.earth:7687

And i got this error message 

Unmatched arguments from index 0: 'database', 'upload', 'Remote', 'DBMS', '--from-path=file:///Users/james/Library/Application', 'Support/Neo4j', 'Desktop/Application/relate-data/projects/project-7732f753-6ffd-4904-8ce5-28ab316a005f/dbms-neo4j-Dec-13-2022-10-12-01.dump', '--to-uri=neo4j.limetrack.earth:7687'

 

3 REPLIES 3

ameyasoft
Graph Maven
This is the syntax (for versions below 5):

bin/neo4j-admin load --from=data/dumps/xxx.dump --database=xxx --force

jcct100
Node Clone

Hi @ameyasoft ,

 

I try your syntax below and i got an error "Archive does not exist". As you can see in the screenshot in my last post the file "dbms-neo4j-Dec-13-2022-10-12-01.dump" does exists

bash-3.2$ bin/neo4j-admin load --from=data/dumps/dbms-neo4j-Dec-13-2022-10-12-01.dump --database=Remote --force
Selecting JVM - Version:11.0.14.1+1-LTS, Name:OpenJDK 64-Bit Server VM, Vendor:Azul Systems, Inc.
Archive does not exist: data/dumps/dbms-neo4j-Dec-13-2022-10-12-01.dump

 

I try another path by using the finder to reveal the path of the file. I did this command below and got this error 

bin/neo4j-admin load --from=Users/james/Library/Application Support/Neo4j Desktop/Application/relate-data/projects/project-7732f753-6ffd-4904-8ce5-28ab316a005f/dbms-neo4j-Dec-13-2022-10-12-01.dump --database=Remote --force

Unmatched arguments from index 2: 'Support/Neo4j', 'Desktop/Application/relate-data/projects/project-7732f753-6ffd-4904-8ce5-28ab316a005f/dbms-neo4j-Dec-13-2022-10-12-01.dump

 

I think is to do with the white space. So I try the command below by replacing the white spaces with %20 and now i got this error

bin/neo4j-admin load --from=Users/james/Library/Application%20Support/Neo4j%20Desktop/Application/relate-data/projects/project-7732f753-6ffd-4904-8ce5-28ab316a005f/dbms-neo4j-Dec-13-2022-10-12-01.dump --database=Remote --force

Selecting JVM - Version:11.0.14.1+1-LTS, Name:OpenJDK 64-Bit Server VM, Vendor:Azul Systems, Inc.
Archive does not exist: Users/james/Library/Application%20Support/Neo4j%20Desktop/Application/relate-data/projects/project-7732f753-6ffd-4904-8ce5-28ab316a005f/dbms-neo4j-Dec-13-2022-10-12-01.dump

 

 

Did you every find a solution?