title: MongoDb: How to import dump data from .gz file?
body: <p>I want to import dump data from my <code>.gz</code> file.</p>
  
  <p>Location of file is <code>home/Alex/Documents/Abc/dump.gz</code> and the name of db is <code>"Alex"</code>.</p>
  
  <p>I have tried <code>mongorestore --gzip --db "Alex" /home/Alex/Documents/Abc/dump.gz</code></p>
  
  <p>But it shows error: </p>
  
  <pre><code> 2018-10-31T12:54:58.359+0530   the --db and --collection args should 
   only be used when restoring from a BSON file. Other uses are 
   deprecated and will not exist in the future; use --nsInclude instead
   2018-10-31T12:54:58.359+0530   Failed: file 
   /home/Alex/Documents/Abc/dump.gz does not have .bson extension.
  </code></pre>
  
  <p>How can I import it?</p>