Data Migration Tool for MongoDB

I am looking for a data transfer tool for MongoDB, something like Liquibase or Flyway, compatible with Mongo 3.0.

Any recommendations?

Thank.

+4
source share
5 answers

I built a quick command line tool designed to update the database during deployment.

It uses the dotnet kernel and runs on windows / linux / macos.

At the moment, it allows you to export / import / delete / delete and parse any javascript. https://github.com/Socialtalents/SocialTalents.MongoSync/

PS: This is 3 days, so if you find a mistake, let me know.

+1
source

Pretty old question, but for others looking for an answer:

Mongeez (https://github.com/mongeez/mongeez). , .

0
0

MongoSyphon, - Mongo, .. .

0

Mongobee MongoDB - . .

Maven

<dependency>
  <groupId>com.github.mongobee</groupId>
  <artifactId>mongobee</artifactId>
</dependency>

bean Mongobee xml

<bean id="mongobee" class="com.github.mongobee.Mongobee">
 <constructor-arg ref="mongo"/>
 <property name="dbName" value="${mongo.databaseName}"/>
 <property name="enabled" value="true"/>
 <property name="changeLogsScanPackage" value="basepackagewherechangesetispresent"/>

@ChangeLog(order = "1")
public class DatabaseChangeLog {

@ChangeSet(order = "101", id = "somelogicalnameforthischangeset", author = "nameofpersonwhodidthischange")
public void setupSeedData(MongoTemplate mongoTemplate) { 
   // run your datasetup, prefill,migration here.
}

, , , .

0

Source: https://habr.com/ru/post/1650179/


All Articles