While reading the mongodump documentation, I came across this information. "mongodump only captures the documents in the database in its backup data and does not include index data. mongorestore or mongod must then rebuild the indexes after restoring data."
Considering that indexes are also critical piece of the database puzzle and they form required to be rebuilt, why doesn't mongodump have an option of taking the backups with indexes?
I get that there are two advantages of not backing up indexes as a default option: 1. We save time which would otherwise be required for backup and restore of indexes. 2. We save space required for storing the backups.
But why not have it as an option at all?