Backup Countly Mongodb on specific date

Hi ,
I have a question , is it possible for me to backup some collection like "carriers" on specific day everyday?
since i didnt see any "ts" on column "carriers" like in "logs{app_id}" . all i see in "carriers" is something like "app_id + year:month" on "_id"
thankyou

0

Comments

4 comments
  • Problem is that data is scattered among multiple documents and largest of them, contains data about the whole year. So basically you would need to run a regex on _id field to dump data for this year and every day rewrite your dump with new one.

    0
    Comment actions Permalink
  • thanks for the reply ,
    then the most i can do with _id is get the year:month using regex , and then give some timestamp on the dump result . is this correct?

    0
    Comment actions Permalink
  • Basically yes. But such standard model data does not consume much space, I think it is easier to just dump whole collection on every backup.

    0
    Comment actions Permalink
  • Thanks for the answer . it answered my question

    0
    Comment actions Permalink

Please sign in to leave a comment.