title: Mongodb's "mongodump" command, javascript execution error
body: <p>Perhaps I have a complete misunderstanding of how <code>mongodump</code> is supposed to work, but I can't seem to get it to do anything besides returning a <code>JavaScript execution failed: SyntaxError: Unexpected identifier</code> error.</p>
  
  <p>Here's what I'm doing:</p>
  
  <ul>
  <li>Mongod is running</li>
  <li>I want to backup a database called "mydb"</li>
  <li>I'm inside the mongo shell</li>
  <li>I tried the command <code>mongodump --db mydb</code> and get the above error</li>
  <li>I've tried both <code>mongodump</code> and <code>mongoexport</code>, both have the same issue</li>
  </ul>
  
  <p>What am I doing wrong here?</p>