you can use this tool to sync db between mongodbs (compatible with mongo 2.0 & 3.0)
compile with mongo(2.4)
- clone mongo and checkout r2.4.9 tag
- cp sync.h and sync.cpp to
src/mongo/tools/
- modify the line 632 from 'normalTools = [ "dump", "restore", "export", "import", "stat", "top", "oplog" ]' to 'normalTools = [ "dump", "restore", "export", "import", "stat", "top", "oplog", "sync" ]'
- comment the
-Werror
flags in themongo/SConstruct
andmongo/src/third_party/v8/SConscript
, as follows
```cpp
mongo/SConstruct
713 # env.Append( CCFLAGS=["-Werror", "-pipe"] )
mongo/src/third_party/v8/SConscript
50 # '-Werror',
```
- scons tools