Blog
Short MongoDB notes.
A real problem, the commands that solve it, the traps on the way. Read in five minutes, use the same day.
-
How to copy a MongoDB database to another server
The mongodump | mongorestore one-liner that works today, and the six traps everyone hits on the first try.
Read → -
Install MongoDB in Docker as a replica set
One command, a replica set with a password, and none of the Docker traps: container names, ports around ufw, the kernel, latest.
Read → -
Install MongoDB on Ubuntu as a replica set
One command, a replica set with a password, the kernel trap that stops mongod today, upgrades and a move to a new server without downtime.
Read →