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 7033051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:00:47+00:00 2026-05-28T01:00:47+00:00

I think someone has already suggested: 1. stop the mongod 2. backup the data

  • 0

I think someone has already suggested:

1. stop the mongod
2. backup the data directory

Is it reliable, I mean, ensure 100% success to restore?
And I can’t find which directory stores the data… any command can help me to find it?

  • 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-05-28T01:00:47+00:00Added an answer on May 28, 2026 at 1:00 am

    If mongod process exits cleanly (that is, no crashes or kill -9 stuff), then it is safe to copy data files somewhere.

    If your current installation breaks (for example, data corruption due to unclean shutdown), you can delete its files, copy that backup over and start mongod again.

    Default data directory is /data/db, but it may be set to another value in your config file. For example, I set it to /var/lib/mongodb.

    You can also use mongodump to do a backup from a live server (this may impact performance). Use mongorestore to restore backups made by mongodump.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hoping someone else has already encountered this and has a solution... I'm trying to
I'm hoping that someone has found a way of doing this already or that
I'm writing this in the forlorn hope that someone has already done something similar.
I think it should be 01 but someone says its undefined, any reason for
I think I am overthinking this issue a little and I'm hoping someone can
I think I may have a misunderstanding of <xsl:variable\> and <xsl:value-of\> so perhaps someone
I came across the following expression in someone else's code. I think it's terrible
Heads starting to hurt. I think I dropped into this too fast... Perhaps someone
Perhaps something similar has already been asked, and sure, it's a nitpick... I have
I am sure that someone has a pluggable app (or tutorial) out there that

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.