Want to do an incremental backup for mongodb. Journaling? Oplog?

前端 未结 2 1167
感动是毒
感动是毒 2020-12-29 15:15

I want to daily backups for a single mongodb database, probably with mongodump. To not lose any data, I would like this to be incremental so if something goes wrong in the m

相关标签:
2条回答
  • 2020-12-29 15:42

    MongoDB doesn't provide an incremental backup option out of the box, but it's possible to do a file snapshot and replay the oplog. Did you set up your server as a replica set following the steps outlined in the documentation? http://www.mongodb.org/display/DOCS/Replica+Sets+-+Basics

    Could you also tell us the purpose of these backups? Have you considered adding a second node to your replica set for data durability?

    If you've walked through the steps to set up the server as a member of a replica set, can you run rs.status() in the shell?

    One other note (just to clarify)- journaling is not meant to be a backup strategy; journaling merely ensures that the database can return to a consistent state in the event of failover. Running with journaling enabled is highly recommended.

    Here is the MongoDB documentation for backups: http://www.mongodb.org/display/DOCS/Backups

    0 讨论(0)
  • 2020-12-29 15:46

    The best way to do the backups is to configure Ops Manager as part of your MongoDB infrastructure, but it does so much more than just backups...

    0 讨论(0)
提交回复
热议问题