0

I have a project that currently stores GPS tracking data in MongoDB, and it grows really fast. In order to slow it down, I want to automatically backup old data then remove it from the database monthly. The old data must older than 3 months.

Is there any solution to accomplish that?

Anh Cao
  • 482
  • 7
  • 13

1 Answers1

0

This question was partially answered earlier.

After using this approach, you can backup the collection with your old data using mongodump for example:

mongodump -host yourhost [-u user] -d yourdb -c collOldDocs
Markus W Mahlberg
  • 19,711
  • 6
  • 65
  • 89