you can save indexes with:
db.system.indexes.find()
and replay that (recreate) with;
db.system.insert(...) for each one.
createCollection() in the shell can be used to explicitly create a
collection, but normally this is unnecessary as they will implicitly
create on the first insert.