Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

mongodb retention script

Script to:

  1. remove old data from all database collections (performed on primary)
  2. rebuild indexes (performed on secondaries)

To make it work, user in database should be created with dbAdmin role in given database.

To check options, run python mongodb_retention.py -h

About

script to cut old data from mongodb & rebuild indexes after cut

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages