Minimum permission for using mongodump (to dump a specific db)

前端 未结 4 1595
不知归路
不知归路 2021-02-01 16:59

We can\'t seem to find any conclusive document on what permissions (user roles) are required to run mongodump on a specific db.

Say I have a db named

4条回答
  •  你的背包
    2021-02-01 18:00

    Fortunately mongodump 3.0 is accepting options to skip certain collections.

    This solved my problem not having admin access to the database to tweak permissions. Please keep in mind that you will not create full backups anymore.

    mongodump --excludeCollection=system.indexes
    

    or

    mongodump --excludeCollectionsWithPrefix=system
    

提交回复
热议问题