Difference between revisions of "Mongodump"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 1: Line 1:
{{Draft}}
+
<code>mongodump</code> reads data from a MongoDB database and creates high fidelity BSON files which the mongorestore tool can use to populate a MongoDB database
 
  https://docs.mongodb.com/database-tools/mongodump/
 
  https://docs.mongodb.com/database-tools/mongodump/
  

Revision as of 13:50, 13 April 2020

mongodump reads data from a MongoDB database and creates high fidelity BSON files which the mongorestore tool can use to populate a MongoDB database

https://docs.mongodb.com/database-tools/mongodump/


Database backup:

  • mongodump --archive=test.20150715.archive --db your_db_name (Use: show dbs to view available DBs)


Sharded Clusters

Backups created with mongodump do not maintain the atomicity guarantees of transactions across shards

Related commands

See also

Advertising: