MongoDB 8 · Backup and administration

Back up a database

Write a binary dump of one database to a folder.

mongodump --uri="mongodb://localhost:27017/mydb" --out=backup/

Official MongoDB 8 documentation

More backup and administration commands

All backup and administration commands · MongoDB 8 cheatsheet

Was this page helpful?