Backups are very important. It’s very easy to mess up your server.
Here’s how to set up automatic backups for MongoDB
1. Get MongoDB tools
- Go to https://www.mongodb.com/try/download/database-tools, pick your distro (in this guide I use Ubuntu), select the deb format, and click copy link
- SSH into your server and type these commands:
wget -O mongotools.deb