Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 334 Bytes

File metadata and controls

11 lines (8 loc) · 334 Bytes

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