In my case, I want to backup and restore all databases. It may sound silly, but -
Instead of doing
mongodump
mongorestore
Why can't I just
tar -cvzf /backup/mongo.tar.gz /data/db
tar -xzf /backup/mongo.tar.gz -C /data/db
Does it really not work?
source
share