"mongodump" only schema

2,137 views
Skip to first unread message

Prashant C

unread,
Jan 24, 2011, 2:36:09 AM1/24/11
to mongodb-user
Hi all ,
I am only one day born for mongoDB,

I am having following 3 questions...

1] I am having db backup for mongo whihc is 2.4 GB so i am not able to
restore it on my 32bit OS, is there ant workaround for this?

2] Is there any option to dump only "schema" and not complete data ?
please suggest on this. (like we give --no-data option in mysql)

3] I have access to online database, is it possible to view list all
collections in hierarchical view so that i can easily understand it.

Regards
Prashant

Nat

unread,
Jan 24, 2011, 8:26:45 AM1/24/11
to mongodb-user


On Jan 24, 3:36 pm, Prashant C <prashantchaudha...@gmail.com> wrote:
> Hi all ,
> I am only one day born for mongoDB,
>
> I am having following 3 questions...
>
> 1] I am having db backup for mongo whihc is 2.4 GB so i am not able to
> restore it on my 32bit OS, is there ant workaround for this?

You have to use 64-bit version of mongodb

> 2] Is there any option to dump only "schema" and not complete data ?
> please suggest on this. (like we give --no-data option in mysql)

Schema is embedded in the document itself. Therefore, there is no way
to export the schema only

> 3] I have access to online database, is it possible to view list all
> collections in hierarchical view so that i can easily understand it.
There are many tools. Take a peek at http://www.mongodb.org/display/DOCS/Admin+UIs

> Regards
> Prashant

Andreas Jung

unread,
Jan 24, 2011, 8:28:20 AM1/24/11
to mongod...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Prashant C schrieb:


restore it on my 32bit OS, is there ant workaround for this?
>
> 2] Is there any option to dump only "schema" and not complete data ?
> please suggest on this. (like we give --no-data option in mysql)

If you haven't noticed: MongoDB is a NoSQL database and *schemaless*

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJNPX5zAAoJEADcfz7u4AZjHP4Lvjx5pinneHyB6lXs9epMQVRi
Qdvih1pCoDwdkxPyxDZqpBXmkVlnHvyJGQH4Fq6r0W5KP4dt6spLioRbAW/jXu0o
AbWcsSem+tTcxFvZvj0bRb1ukSxnL07ZPyQZQdvvBPoAqKUsQo3CbFnuLzgzUrJR
iI/xRVuBZVHBVruYMSfQfY+O48GYq0FVsvZ1Ojs5Gl28+g8jsLyxCp+lIIdcfV2M
vMiMEQbVaaay37g1sWerCPuBXmxS/FQC51L5CbG5geC47U74/5oGZYqEM88ENOTJ
xOk1E34pEOVpTCO63xT1SrC9FYGhm44Lw0gc8EqEmeLYwi+UlMW/F42mnZz+bdJe
0IypCahckE7ZgmeY2qt/UwSR0kbwRb5EyX5ZxNegMpytam0LxjsrdrpLJvch4DSC
Si7pMK3YDBrvpTdanUHWGjE7r7JuA2O8S25JI22G9qOmrHy3O0n7pMNTwLsSuOGE
kJy/f0iREBTSvVvvcQc9ylBmM867fnU=
=/p2S
-----END PGP SIGNATURE-----

lists.vcf

Mark Kwan

unread,
Jan 24, 2011, 5:43:34 PM1/24/11
to mongodb-user
Perhaps he means the indexes? That's essentially the MySQL equivalent
in Mongo. If you want to start the database on a different system,
you need to setup the indexes in Mongo first (if you don't want to
have some possibly punishing performance issues right off the bat).


On Jan 24, 5:28 am, Andreas Jung <li...@zopyx.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Prashant C schrieb:
> restore it on my 32bit OS, is there ant workaround for this?
>
>
>
> > 2] Is there any option to dump only "schema" and not complete data ?
> > please suggest on this. (like we give --no-data option in mysql)
>
> If you haven't noticed: MongoDB is a NoSQL database and *schemaless*
>
> - -aj
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/
>
> iQGUBAEBAgAGBQJNPX5zAAoJEADcfz7u4AZjHP4Lvjx5pinneHyB6lXs9epMQVRi
> Qdvih1pCoDwdkxPyxDZqpBXmkVlnHvyJGQH4Fq6r0W5KP4dt6spLioRbAW/jXu0o
> AbWcsSem+tTcxFvZvj0bRb1ukSxnL07ZPyQZQdvvBPoAqKUsQo3CbFnuLzgzUrJR
> iI/xRVuBZVHBVruYMSfQfY+O48GYq0FVsvZ1Ojs5Gl28+g8jsLyxCp+lIIdcfV2M
> vMiMEQbVaaay37g1sWerCPuBXmxS/FQC51L5CbG5geC47U74/5oGZYqEM88ENOTJ
> xOk1E34pEOVpTCO63xT1SrC9FYGhm44Lw0gc8EqEmeLYwi+UlMW/F42mnZz+bdJe
> 0IypCahckE7ZgmeY2qt/UwSR0kbwRb5EyX5ZxNegMpytam0LxjsrdrpLJvch4DSC
> Si7pMK3YDBrvpTdanUHWGjE7r7JuA2O8S25JI22G9qOmrHy3O0n7pMNTwLsSuOGE
> kJy/f0iREBTSvVvvcQc9ylBmM867fnU=
> =/p2S
> -----END PGP SIGNATURE-----
>
>  lists.vcf
> < 1KViewDownload
Reply all
Reply to author
Forward
0 new messages