Difference between revisions of "Mongorestore"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Draft}}
 
{{Draft}}
 +
{{lowercase}}
 +
 +
Restoring from a backup executed with <code>--archive</code> option
 +
<code>mongorestore --archive="mongodump-test-db" </code>
 +
 +
 +
<code>mongorestore -db=YOUR_NEW_DB /path/to/your/backupfile</code>
 +
  
<code>mongorestore -db YOUR_NEW_DB /path/to/your/backupfile</code>
 
  
  
 
== Related terms ==
 
== Related terms ==
 
* [[BSON]]
 
* [[BSON]]
 
+
* <code>[[mongodump]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 11:46, 18 February 2022

This article is a Draft. Help us to complete it.

Restoring from a backup executed with --archive option

mongorestore --archive="mongodump-test-db" 

mongorestore -db=YOUR_NEW_DB /path/to/your/backupfile



Related terms[edit]

See also[edit]

Advertising: