title: How to grant permission for mongodb's mongodump
body: <p>I'm trying to migrate my db over to a new machine. When I use <code>mongodump</code> in cmd it gives the error:</p>
  
  <p><code>Failed: error dumping metadata: error creating directory for metadata file dump\margin_calls: mkdir dump: Access is denied.</code></p>
  
  <p>I know I need to grant the 'backup' permission to allow this but I can't figure out how to do this. </p>
  
  <p>EDIT: I thought this was quite an easy problem for someone familiar with the mongodb environment ?</p>