Thanks. If I understand the tutorial of neo4j and your expaination, this part of code is correct :
//create the original graph neo = new EmbeddedGraphDatabase(CONSTANTS.GRAPH_PATH); graph = ObjectGraphFactory.instance().get(neo); for (String datasource : new String[]{"nioneodb", "lucene"}) { neo.getConfig().getTxModule().getXaDataSourceManager() .getXaDataSource( datasource ).keepLogicalLogs( true ); } //create the backup graph EmbeddedGraphDatabase neo = GraphJo4neo.getGraphDatabaseService(); EmbeddedGraphDatabase backupGraphDb = new EmbeddedGraphDatabase( CONSTANTS.GRAPH_BACKUP_PATH ); IndexService backupIndexService = new LuceneIndexService( backupGraphDb ); Backup backup = new Neo4jBackup( neo, backupGraphDb, new ArrayList<String>() { { add( "nioneodb" ); add( "lucene" ); } } ); try { backup.enableFileLogger(); backup.setLogLevelDebug(); backup.doBackup(); } catch (IOException e) {} Basically, this part of code is right, isn'it? Le 09-juin-10 à 12:07, Tobias Ivarsson a écrit : > Hi Bat, > > I've tried this with the combination of > * neo4j-kernel-1.0.jar (from neo4j-apoc-1.0) > * neo4j-online-backup-0.5.jar > That works fine. > > Are you sure that you don't have incompatible versions on the class > path as > well? > > Try printing the classpath from your application and verify that you > don't > have multiple versions of the same Neo4j library there: > System.out.println(System.getProperty("java.class.path")); > > > Also, don't forget that you need to tell the data sources (nioneodb > and > lucene) to keep their logical logs: > > EmbeddedGraphDatabase neo = ... > for (String datasource : new String[]{"nioneodb", "lucene"}) { > neo.getConfig().getTxModule().getXaDataSourceManager() > .getXaDataSource( datasource ).keepLogicalLogs( true ); > } > > Cheers, > Tobias > > On Wed, Jun 9, 2010 at 9:56 AM, Batistuta Gabriel < > batistutagabrielf...@gmail.com> wrote: > >> Nobody has a solution for my problem? >> >> Many thanks, >> >> Bat >> Le 08-juin-10 à 16:05, BatiG a écrit : >> >>> >>> I've tried with : >>> - neo4j-kernel-1.0-rc.jar >>> - neo4j-kernel-1.0.jar >>> >>> And I've the same error in the both cases. >>> -- >>> View this message in context: >> http://neo4j-user-list.438527.n3.nabble.com/Online-Backup-wich-package-tp878706p879410.html >>> Sent from the Neo4J User List mailing list archive at Nabble.com. >>> _______________________________________________ >>> Neo4j mailing list >>> User@lists.neo4j.org >>> https://lists.neo4j.org/mailman/listinfo/user >> >> _______________________________________________ >> Neo4j mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > > > > -- > Tobias Ivarsson <tobias.ivars...@neotechnology.com> > Hacker, Neo Technology > www.neotechnology.com > Cellphone: +46 706 534857 > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user