[Neo4j] How to copy a complete database?
Alex Averbuch
alex.averbuch at gmail.com
Thu Mar 3 12:55:50 CET 2011
You could use GraphMigrator from Blueprints:
https://github.com/tinkerpop/blueprints/blob/master/src/main/java/com/tinkerpop/blueprints/pgm/util/graphml/GraphMigrator.java
Check out *testMigratingTinkerGraphExample3()* in this test case for usage:
https://github.com/tinkerpop/blueprints/blob/master/src/test/java/com/tinkerpop/blueprints/pgm/util/graphml/GraphMLReaderTestSuite.java
Basically:
Neo4jGraph oldGraph = new Neo4jGraph(oldDirectory);
Neo4jGraph newGraph = new Neo4jGraph(newDirectory);
GraphMigrator.migrateGraph(oldGraph, newGraph);
On Thu, Mar 3, 2011 at 12:25 PM, Axel Morgner <axel at morgner.de> wrote:
> +1
>
> On 03.03.2011 12:25, Peter Neubauer wrote:
> > Mmh,
> > maybe this could be in some Utilities class? Seems a good thing to be
> > able to clone a graph ...
>
> _______________________________________________
> Neo4j mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
More information about the User
mailing list