Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 mongodb 从暂存环境复制到我的本地开发环境,但似乎 mongorestore 只需要一个集合作为输入源。是否有任何简单的方法可以在没有一些 bash voodoo 的情况下复制多个集合?
似乎不需要复杂的脚本。你可以这样做:
mongorestore <dbname> --drop
在/dump目录中自动恢复所有集合
/dump