Restore MongoDB collection

mongoimport allow you to restore mongodb backups.

mongoimport --db DB_NAME --collection COLLECTION_NAME --file COLLECTION_BACKUP.json

Example

mongoimport --db direct_db --collection image_settings --file image_settings.json

See MongoDB

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *