Skip to content
This repository was archived by the owner on Mar 20, 2019. It is now read-only.
This repository was archived by the owner on Mar 20, 2019. It is now read-only.

Local import/export file when using a remote host  #118

@john-bodley

Description

@john-bodley

@jexp I love how performant the binary export/import is when compared to using neo4j-shell -c dump or neo4j-shell -file for exporting and import respectively.

The issue I'm running into is I would like to import a local file to a remote host in a similar vein to the mysqldump and mysql commands. The neo4j-shell supports remote hosts and bash supports reading from STDIN so I can definitely do,

> neo4j-shell -host <remote> -file < /tmp/graph.cql

where /tmp/graph.cql is local, however when using import-binary the input filename is embedded in the command, so in a local context the following works,

 > neo4j-shell -host localhost
 NOTE: Remote Neo4j graph database service 'shell' at port 1337
 neo4j-sh (?)$ import-binary -i /tmp/graph.bin

however this clearly fails as the /tmp/graph.bin doesn't exist on the remote machine.

 > neo4j-shell -host <remote>
 NOTE: Remote Neo4j graph database service 'shell' at port 1337
 neo4j-sh (?)$ import-binary -i /tmp/graph.bin
 /tmp/graph.bin (No such file or directory)

Do you know if there's any workaround for this, i.e. is it possible to import data from a local machine to a remote host running Neo4j without explicitly copying the file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions