export, import all collections in mongodb shell - Google Search

PHOTO EMBED

Fri Nov 13 2020 08:17:27 GMT+0000 (Coordinated Universal Time)

Saved by @ali_alaraby

// EXPORT
mongodump -d <database_name> -o <directory_backup>
// IMPORT
mongorestore -d <database_name> <directory_backup>
content_copyCOPY

https://www.google.com/search?sxsrf