MongoDB Database Administrator Tools
Learn how to use a suite of command-line tools to administer and manage your MongoDB deployments. These tools fall into four categories: backup and restore, data import and export, diagnostics, and GridFS tools.
MongoDB Database Administrator Tools
Unit Overview
In this unit, you will install a set of command-line tools on an Ubuntu Linux container that will help you with several tasks associated with administering and managing a MongoDB deployment. These common tasks for DBAs include:
- Backup and recovery of simple, non-sharded deployments with
mongodumpandmongorestore - Data migration with
mongoexportandmongoimport - Deployment monitoring with
mongostat,mongotop, andbsondump - File storage in a MongoDB database with
mongofiles
Prerequisites
Lessons in This Unit
- Lesson 1 – Get Started with DBA Tools
- Lesson 2 – Backup Tools
- Lesson 3 – Restore Tools
- Lesson 4 – Data Export Tools
- Lesson 5 – Data Import Tools
- Lesson 6 – Diagnostic Tools: mongostat
- Lesson 7 – Diagnostic Tools: mongotop
- Lesson 8 – Diagnostic Tools: bsondump
- Lesson 9 – MongoDB as a Filesystem
-
01.
-
02.Lesson 2: Backup Tools
- Learn
- Practice
-
03.Lesson 3: Restore Tools
- Learn
- Practice
-
04.Lesson 4: Data Export Tools
- Learn
- Practice
-
05.Lesson 5: Data Import Tools
- Learn
- Practice
-
06.Lesson 6: Diagnostic Tools: mongostat
- Learn
- Practice
-
07.Lesson 7: Diagnostic Tools: mongotop
- Learn
- Practice
-
08.Lesson 8: Diagnostic Tools: bsondump
- Learn
- Practice
-
09.Lesson 9: MongoDB as a Filesystem
- Learn
- Practice
-
10.Conclusion
- Learn
Sarah Evans | Senior Curriculum Engineer
Sarah is a Senior Curriculum Engineer on the Curriculum team at MongoDB. Prior to MongoDB, she taught and developed curricula for developer bootcamps. Sarah has a MAT degree from Columbia University Teachers College and studied Software Engineering at Flatiron School in Chicago, IL.
Vick Mena | Director, Curriculum
My name is Vick and I've been in the wild for over 25 years. I grew up at IBM working on the BIOS for the IBM eServer line in Austin, TX before moving to Wall St. I've worked on all phases of software development from low-level to middleware to UI but feel most comfortable in the middle. I also drank the devops kool-aid having moved a product line to AWS while at Dow Jones & Co with the help of an amazing team. I then pivoted into the secure space and worked on software/hardware reverse engineering. I always thought I'd eventually teach and this role lets me leverage all of my experience to lead this motley crew of passionate educators.
Welcome to this unit on MongoDB Tools for Database Administrators. In this unit, we’ll introduce you to tools offered by MongoDB that can help you accomplish your database administrator tasks like data migration, back up and recovery, and monitoring.
By the end of this unit, you’ll understand how the tools included in MongoDB’s Database tools suite are used, their basic syntax, and useful options for working with them.
My name is Sarah. I’m a curriculum engineer at MongoDB, and I’ll be your guide through this unit.
We’ll start by exploring the tools included in the MongoDB Database Tools suite and we’ll show you how to install them on Ubuntu Linux.
Then, you will learn about the backup and restore utilities that are part of the Database Tools suite, including mongodump and mongorestore.
These utilities can be used together as part of a backup and recovery strategy for simple, non-sharded deployments.
For production use, we strongly recommend one of MongoDB’s coordinated backup and restore alternatives instead of using mongodump and mongorestore.
Next, you’ll learn about the data import and export tools mongoexport and mongoimport.
These tools can be used on standalone, replica set, and sharded cluster deployments. They’re used to export and import data at the collection level to assist with data migration.
Then, you will learn about the diagnostic tools mongostat, mongotop, and bsondump.
These tools can be used to assist with monitoring your deployment from the command line, and to inspect binary json data.
Finally, you will learn about the GridFS Tool, mongofiles.
GridFS is a specification that allows you to store files in a MongoDB database.
mongofiles is the database tool that serves as an interface between your local files and GridFS, so that you can upload, download, search for, and delete files from the command line
Throughout this unit, you'll have plenty of opportunities to practice what you learned by completing labs and quizzes that present real-world scenarios. This way, you'll build your knowledge and get comfortable with MongoDB Database Tools at the same time.
Let’s get started!