Skip to main content
# oplogutils

Utilities for inspecting and manipulating the MongoDB oplog.

By Dan McKinley - dan@etsy.com - [http://mcfunley.com](http://mcfunley.com)


## Overview

This package contains utilities for manipulating a MongoDB oplog, which can be
necessary in recovery scenarios. The tools are:

<pre>
oplog-count - counts the number of events in the oplog after a certain date
and time.
oplog-trim - deletes events from the oplog after a certain date and time.
</pre>


## Installation

The easiest way to install is using [setuptools](http://pypi.python.org/pypi/setuptools).

<pre>
$ easy_install oplogutils
</pre>

To install from source, extract the tarball and use the following commands.

<pre>
$ python setup.py build
$ sudo python setup.py install
</pre>


## Examples

<pre>
oplog-trim --host=myhost.domain.com --port=27017 --remove-after="2010-05-22 03:42:00"
</pre>


## Unit Tests

oplogutils comes with a fairly complete unit test suite. The suite requires the
mongod program to be somewhere in the $PATH. To run the tests, use:

<pre>
python setup.py test
</pre>


## See Also

* [The MongoDB website](http://www.mongodb.org/)
* See [articles tagged MongoDB on the Etsy developer blog](http://codeascraft.etsy.com/tag/mongodb/) for some use cases.


## Version History

### Version 0.1.2
* 05-30-2010 - Added --version switch to commands. Test fixes.

### Version 0.1.1
* 05-30-2010 - Added oplogutils to cheeseshop.

### Version 0.1
* 05-21-2010 - Initial release.

Metadata

Release files for oplogutils 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for oplogutils 0.1.2
File Interpreter ABI Platform Actions
oplogutils-0.1.2-py2.5.egg Legacy Egg format - - Details for oplogutils-0.1.2-py2.5.egg

Release files / oplogutils-0.1.2-py2.5.egg

Download URL oplogutils-0.1.2-py2.5.egg
Size 11.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
d3567482a8281243205f778ae9fb34a60e83c31edd4a597ddff99c8e70e759c6
BLAKE2b-256 checksum
How to use checksums
97f609528b76a06784ca8c2e2f190d0981a8d71f84dcb9f50d022b6b5a684749
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for oplogutils 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

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