I have a server that is having trouble talking to the outside world. I would like to get its mongodb contents to another server–but since the servers cannot talk to eachother db.copyDatabase() won’t do.
Is there something like mysqldump where I could dump the db into a binary file, scp that somewhere, and then use that to populate another mongodb server?
Use the mongodump and mongorestore commands.
You can also gzip. The documentation has more examples.