Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

440
Vistas
How to grant permission for mongodb's mongodump

I'm trying to migrate my db over to a new machine. When I use mongodump in cmd it gives the error:

Failed: error dumping metadata: error creating directory for metadata file dump\margin_calls: mkdir dump: Access is denied.

I know I need to grant the 'backup' permission to allow this but I can't figure out how to do this.

EDIT: I thought this was quite an easy problem for someone familiar with the mongodb environment ?

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

I ran into the same issue. It's because you do not have write permissions in the directory. You can change your command to:

    mongodump --out C:\Users\{YourUser}\Desktop

for example. So the backup dump is stored in a new folder in your desktop (change the path to store it in a different location).

Thanks to: https://stackoverflow.com/a/37510708/13811514 for the original post.

over 4 years ago · Santiago Trujillo Denunciar

0

According to the documentation, there's a built-in backup role which is designed for this sort of thing:

> use admin
> db.createUser({
    user: "backupuser",
    pwd: "12345",
    roles: ["backup"]
}) 
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda