mongooplog-alt is a Python module created as a remake of the original MongoDB mongooplog tool.
Installation
Using pip (preferred):
pip install --upgrade mongooplog-alt
Using easy_install:
easy_install -U mongooplog-alt
Command-line options
Options common to original mongooplog:
Options specific to mongooplog-alt:
Usage
Consider the following sample usage:
mongooplog-alt --from prod.example.com:28000 --host dev.example.com:28500 -f --exclude logdb data.transaction
Product's homepage
Here are some key features of "mongooplog-alt":
· tailable oplog reader: runs forever polling new oplog event which is extremly useful for keeping two independent replica sets in almost real-time sync.
· option to exclude one or more namespaces (i.e. dbs or collections) from being synced.
· works on mongodb 1.8.x, 2.0.x, and 2.2.x. Official utility supports 2.2.x only.
· at the time of writing (2.2.0), official mongooplog suffers from bug that limits its usage with replica sets (https://jira.mongodb.org/browse/SERVER-6915)
Requirements:
· Python