Skip to main content

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

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

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.4.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file OplogReplay-0.1.4.tar.gz.

File metadata

  • Download URL: OplogReplay-0.1.4.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for OplogReplay-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5a34cd29b84e7d4ed9fd832e4c650ddb2fb68aeb7590ba7fb99d9ef30201985a
MD5 f152ca80c191457f89a55cdcbc9b8ff1
BLAKE2b-256 cd895ea9e9b3e3454b8b403f5224084b24256575417ffa347774f136e57b3870

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 file

0.1.3

1 file

0.1.2

1 file

0.1.01

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page