# Mongorewind: Rewind Your MongoDB Test Data Without Restoring a Backup

DevFeed: [Mongorewind: Rewind Your MongoDB Test Data Without Restoring a Backup](<https://devfeed.tech/articles/mongorewind-rewind-your-mongodb-test-data-without-restoring-a-backup-14103.md>)

Original publisher: [Read original article](<https://www.percona.com/blog/mongorewind-rewind-your-mongodb-test-data-without-restoring-a-backup/>)

Author: Zelmar Michelini

Published: 2026-09-02T11:38:40Z

Content type: tutorial

Language: en

Sources: [Blog - Percona](<https://devfeed.tech/sources/blog-percona.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [Terminal](<https://devfeed.tech/topics/terminal.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [ci](<https://devfeed.tech/topics/ci.md>), [dashboards](<https://devfeed.tech/topics/dashboards.md>), [Streams](<https://devfeed.tech/topics/streams.md>)

Tags: [ci](<https://devfeed.tech/tags/ci.md>), [code](<https://devfeed.tech/tags/code.md>), [commands](<https://devfeed.tech/tags/commands.md>), [database](<https://devfeed.tech/tags/database.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [state](<https://devfeed.tech/tags/state.md>), [terminal](<https://devfeed.tech/tags/terminal.md>), [tests](<https://devfeed.tech/tags/tests.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

This article introduces mongorewind, a terminal UI tool that records MongoDB data changes through a cluster-wide change stream and reverses them in reverse chronological order. It is designed to restore test data to its pre-test state without restoring a backup and supports interactive and CI use.

## Source excerpt

Mongorewind: Rewind Your MongoDB Test Data Without Restoring a Backup One day, my friend Martín told me about a problem he and his team were dealing with. Every time they needed to run a pre-production test, they had to restore a copy of the production database into their test cluster. That process alone takes about ... Continued The post Mongorewind: Rewind Your MongoDB Test Data Without Restoring a Backup appeared first on Percona.