Mongodb backup strategy

I’ve been using mongodump-restore to have a backup of the db, and it works pretty well. However, I’ve noticed that as the db grows up, mongodump eats all server RAM swap. See the steps after each backup:

Mongo does not recommend dump-restore as a backup strategy for larger dbs (see mongodb official backup doc).

How do you usually do your backups? Is there any other better option? What would you recommend? Is there any option to keep using mongodump safely?


maybe try cold backups or snapshots

How would you do a cold backup? Just stopping mongod, running mongodump and restarting mongod?

It didn’t work… if I try to do a mongodump after shutting down mongod, it gives “Failed: error connecting to db server: no reachable servers”. Am I missing something?