Back Up a MongoDB Server

15 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this lab, you are tasked with backing up a standalone MongoDB instance. After completing this lab, you will have hands-on experience backing up a simple MongoDB instance.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Back Up All Databases

Back up all databases to compressed BSON files.

Archive the test Database

Back up the test database to a compressed archive file named test.archive.gz.

Restore the test Database

Restore the test database to a new database named restore.

Additional Resources

You are working as a database administrator (DBA) and are tasked with backing up a development database. The database is hosted on a standalone MongoDB instance that does not have access to a filesystem snapshot functionality.

To accomplish this, you will need to complete the following tasks:

  • Back up all databases.
  • Archive the test database.
  • Restore the test database.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?