> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en
> .
>
On 2月24日, 下午9时21分, Eliot Horowitz <eliothorow...@gmail.com> wrote:
> Mongodump will export system.indexes along with the regular data. So
> all the indexes will be recovered.
>
> On Feb 24, 2010, at 8:17 AM, Erix Yao <yao.e...@gmail.com> wrote:
>
> > what if I want to create an index on a db and the db fails?
> > Since there's no meta data for the db I had, I lost all the indexes...
>
> > 2010/2/24 Eliot Horowitz <eliothorow...@gmail.com>
> > Since there isn't a schema you can't export that. You can use
> > mongodump to backup the whold database though
>
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
This is a good idea, regardless of whether you're using MongoDB or
MySQL etc. Could be as simple as writing a shell script that looped
through a text file containing all your database commands (ensure
index and so on). So in the event someone already had an existing
database, they could "replay" those changes to remain consistent with
someone who was doing a full import from a mongoexport file - which
also should be under revision control.
-- Mitch
There is a tool called DbSchema which can represent the MongoDb structure.