I'm following this tutorial to backup and restore a single MongoDB database.
The backup command -
sudo mongodump --db newdb --out /var/backups/mongobackups/`date +"%m-%d-%y"`
The restore command -
sudo mongorestore --db newdb --drop /var/backups/mongobackups/01-20-16/newdb/
Although it works perfectly, MongoDB gives me this warning while restoring the data -
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
Can someone explain how to remove this warning?
I'm using MongoDB 3.4.1 version.