Is it Possible to do Neo4j Data migration from 3.4.4 to 3.2.5


(Jebilson John) #1

Hi All,

We have created data in one instance which has version 3.4.4. But now we need to move that data in version 3.2.5. While trying that neo4j service has not been started. While checking in the log file it shows data migration from higher version to lower version is not possible.

Is there is any way to do data migration from version 3.4.4 to version 3.2.5.


(Tom) #2

Hello John,

The official answer is that we do not support downgrades (only upgrades). It may (!) work if there is no store format change between the two versions (you'd still have to struggle to rebuild indexes and such that may have changed in between ... we've been migrating to native indexes), however there was one at 3.4.0. so in this case it will definitely not work.

Your best option is probably to export the data from the 3.4.4. instance to files and import those back into the 3.2.5. instance. Are we talking about a lot of data ?

Regards,
Tom


(Jebilson John) #3

Hello Tom,
The data is around 5000 nodes and around 7000 relationships.


(Tom) #4

Hello John,

Should take mere (milli)seconds to offload that with - for example - the apoc.export.csv.* utilities and load it in the other instance. That will be the quickest way. Is this a one-time thing or will you have to set this up regularly ?

Regards,
Tom


(Jebilson John) #5

Hello Tom,

This is the one-time work for us.


(Tom) #6

Definitely an export-to-csv and a LOAD CSV to recreate then :-)

Regards,
Tom


(Michael Hunger) #7

Actually apoc.export.cypher should work better then.

As you don't need to write the import code by hand, just run the script with e.g. cypher shell or neo4j-shell (make sure to use the right export options).