kellypw
2012-08-09 21:50:15 UTC
Using version 2.0.5 on RH. For our nightly regression environment, we want
to restore a baseline 'dump' of a database with 2 collections in it each
time we re run our tests. When running the mongorestore for a single
database with the --drop command, it doesn't drop the existing
collections. Here's what the documentation states:
--drop
Modifies the restoration procedure to drop every collection from the target
database before restoring the collection from the dumped backup.
I've tested this multiple times and confirmed that my dump location for the
database has only the 2 .bson files I'm expecting to restore, yet the
existing collections are not dropped when I perform the restore.
Perhaps I'm mis-interpreting what the --drop command does?
TIA
to restore a baseline 'dump' of a database with 2 collections in it each
time we re run our tests. When running the mongorestore for a single
database with the --drop command, it doesn't drop the existing
collections. Here's what the documentation states:
--drop
Modifies the restoration procedure to drop every collection from the target
database before restoring the collection from the dumped backup.
I've tested this multiple times and confirmed that my dump location for the
database has only the 2 .bson files I'm expecting to restore, yet the
existing collections are not dropped when I perform the restore.
Perhaps I'm mis-interpreting what the --drop command does?
TIA
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user-/***@public.gmane.org
To unsubscribe from this group, send email to
mongodb-user+unsubscribe-/***@public.gmane.org
See also the IRC channel -- freenode.net#mongodb
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user-/***@public.gmane.org
To unsubscribe from this group, send email to
mongodb-user+unsubscribe-/***@public.gmane.org
See also the IRC channel -- freenode.net#mongodb