Backing Up A Database With MongoDump
Review how to backup a database with a built-in tool in MongoDB: How To Backup With MongoDump. As you can see, we learn how backup a database with the native tool of MongoDump. We'll want to specify a location that we are willing to store files and we should consider that this location will not experience disk corruption, or else or backups may not be valid. You'll also want to ensure that your drive can handle the space required for the backup files that are generated.
Some points that are made in the video:
- What native tool comes with MongoDB that we can use for backing up a database?
- How do we specify the database for backing it up?
- What you should know about the structure of the data in the backup?
- Outside this video's context, what's a good practice that we should consider when we backup a database? Why?
Check out the highest-rated Automating ETL course on Udemy, if you're interested in data.
As a note, just because we backup a database does not mean that it will restore at a later time. For those of you who are familiar with SQL Server, you know that corruption can occur which makes backups invalid. This can occur with MongoDB and we should be careful that we ensure valid backups. I highly recommend restoring backups on a schedule (different server) and running scripts to validate the data. With production level data, we should consider security here and run this on a production level validation server - this will not be appropriate in some contexts without strict security.
YouTube | Automating ETL | T-SQL In 2 Hours | Consumer Guide To Digital Security
Leave Backing Up A Database With MongoDump to:
Read more #development posts
Best Posts From SqlinSix
We have not curated any of sqlinsix's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From SqlinSix
- Solution When ISJSON May Not Be A Recognized Function Name
- Creating a GUID For Each GUID
- Get A Past Bash Command Quickly
- Connecting A Data Factory To An Existing Runtime In Azure
- Backing Up A Database With MongoDump
- SQL Tutorial: Using UNION ALL or UNION and Why
- T-SQL: How To UNION ALL Tables and Why
- SQL Tutorial: Solving Data Differentials With LEFT JOINs Only
- Solving Data Differentials With LEFT JOINs
- Spark Scala: Grouping Values In A Key-Value Pair