Skip to content

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

License

Notifications You must be signed in to change notification settings

dahlinPL/mongodb-retention

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages