tokumx

Migration From Tokumx 1.5 To Percona Server For mongodb 3.11

爱⌒轻易说出口 提交于 2019-12-11 07:37:03
问题 Migrating Data from Tokumx To Percona Server For MonoDB Step 1 : This guide describes how to upgrade existing Percona TokuMX instance to Percona Server for MongoDB. The following JavaScript files are required to perform the upgrade: • allDbStats.js • tokumx_dump_indexes.js • psmdb_restore_indexes.js You can download those files from GitHub. Step 2 : Run the allDbStats.js script to record database state before migration: $ mongo ./allDbStats.js > ~/allDbStats.before.out Step 3 : Perform a dump

mongodb how to mongodump only indexes to another mongodb instance

杀马特。学长 韩版系。学妹 提交于 2019-12-04 18:50:40
问题 I have a mongodb instance with a lot of data, now I need to start up a new instance with the same structure without data. how to get it done? 回答1: You can do that with the "query" option, with a query that does not return any document. Something like: mongodump -q '{ "foo" : "bar" }' This will dump all the dbs and indexes, you can then do a mongorestore to recreate them into another mongod instance See documentation: http://docs.mongodb.org/manual/reference/program/mongodump/#cmdoption--query