Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

MongoDB oplog replay utility.

Project Description

OplogReplay provides a simple tool that can replay MongoDB oplogs from one cluster to another. Useful for admin operations, or to keep multiple copies of the same data in different mongo clusters.

The included bin/oplogreplay script should cover most of the usecases:

oplogreplay source:27017 destination:27017 --logpath=oplogreplay.log

(see oplogreplay –help for more details)


Installing is as easy as:

pip install oplogreplay

Advanced usage

The package contains only two classes:
  • OplogWatcher
  • OplogReplayer

More advanced use-cases can be achieved by extending the OplogReplayer (e.g.: you can choose to skip replaying deletes, or modify the operations before replaying them into the destination cluster, etc.).

Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
OplogReplay-0.1.4.tar.gz (7.5 kB) Copy SHA256 Checksum SHA256 Source Jun 16, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting