Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8404147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:31:30+00:00 2026-06-09T22:31:30+00:00

I want to daily backups for a single mongodb database, probably with mongodump. To

  • 0

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 middle of the day, I need to be able to replay changes for that day up til the point of failure after doing a mongorestore.

Am I understanding correctly that I need to use an oplog for this? Or is journaling the answer? I tried doing the following:

  1. Turning my mongo database into a replica set of just one, so that it creates an oplog. (This feels pretty hacky)
  2. Restarting mongod with the –oplog option
  3. Performing changes that should be recorded in the oplog

However nothing ever gets stored in the oplog. What is the best way to do such incremental backups? I’m basically looking for a similar approach to replaying the mysql binlog.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:31:32+00:00Added an answer on June 9, 2026 at 10:31 pm

    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
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to be able to email a report daily from a glpi database
I want to switch from MySQL to MongoDB but great data losses (more than
I'm using tar to make daily backups of a server and want to avoid
Hi i want to take database backup at daily mid night using cron job...
I want to emulate some human(not for spam use) for some my daily works.
I would like to backup my production database before and after running a database
I want to run a daily back up of an SQL database. I was
Basically, I want to scrape some options data daily from Yahoo! Finance. I have
I am in charge of managing database backups for a MySQL database. This is
Basically I want to update tours table in the database from XML automatically daily

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.