How To Back Up, Restore, and Migrate a MongoDB Database

Importing and exporting a database means dealing with data in a human-readable format, compatible with other software products. In contrast, the backup and restore operations create or use MongoDB-specific binary data, which preserves not only the consistency and integrity of your data but also its specific MongoDB attributes. Thus, for migration, it’s usually preferable to use backup and restore as long as the source and target systems are compatible.

CentOS

8

How To Back Up, Restore, and Migrate a MongoDB Database on CentOS 8

Learn How To Back Up, Restore, and Migrate a MongoDB Database on CentOS 8

Ubuntu

20.04

How To Back Up, Restore, and Migrate a MongoDB Database on Ubuntu 20.04

Learn How To Back Up, Restore, and Migrate a MongoDB Database on Ubuntu 20.04
18.04

How To Back Up, Restore, and Migrate a MongoDB Database on Ubuntu 18.04

Learn How To Back Up, Restore, and Migrate a MongoDB Database on Ubuntu 18.04
14.04

How To Back Up, Restore, and Migrate a MongoDB Database on Ubuntu 14.04

Learn How To Back Up, Restore, and Migrate a MongoDB Database on Ubuntu 14.04

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.