How to copy MongoDB database from server to local machine?
Basically what is missing from your mongodump command is... &quot;&quot; round your --host -value.
--host=&quot;host-name:27017&quot;

Check similar question here