Skip to main content

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)

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.).

Project details


Download files

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

Source Distribution

OplogReplay-0.1.2.tar.gz (7.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page