title: MongoDB restore warning
body: <p>I'm following <a href="https://www.digitalocean.com/community/tutorials/how-to-back-up-restore-and-migrate-a-mongodb-database-on-ubuntu-14-04" rel="noreferrer">this</a> tutorial to backup and restore a single MongoDB database.</p>
  
  <p>The backup command - </p>
  
  <pre><code>sudo mongodump --db newdb --out /var/backups/mongobackups/`date +"%m-%d-%y"`
  </code></pre>
  
  <p>The restore command - </p>
  
  <pre><code>sudo mongorestore --db newdb --drop /var/backups/mongobackups/01-20-16/newdb/
  </code></pre>
  
  <p>Although it works perfectly, MongoDB gives me this warning while restoring the data - </p>
  
  <blockquote>
    <p>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</p>
  </blockquote>
  
  <p>Can someone explain how to remove this warning?</p>
  
  <p>I'm using MongoDB 3.4.1 version.</p>