I have a mongodb, and there is some data inside. Now much, a bit more then 5GB.
> show dbs; local 0.000GB aaaa 0.034GB bbbbb 5.327GB >
So I made a backup, using
mongodump -h mongo --archive > mongo.tar.
However, this file is 16GB in size
root@box:~$ ls -lah | grep mongo -rw-r--r-- 1 root root 16G Oct 7 12:48 mongo.tar
Which is more then three times bigger then reported dataset size. I can compress it, of course, but I would like to know why is the backup so big in the first place.