Skip to content

Tutorial copy db #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 26, 2012
Merged

Tutorial copy db #79

merged 9 commits into from
Jul 26, 2012

Conversation

a-leung
Copy link

@a-leung a-leung commented Jul 20, 2012

No description provided.

available, the copy database commands are faster as there are no
intermediate files to be created.

.. warning::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is really a note.

destination server.

- :dbcommand:`copydb` or :dbcommand:`clone` do not work with a sharded
database, such as a database a from :term:`shard cluster`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are no sharded databases except those in a shard cluster.

I think you're trying to say. "you can use these commands with unsharded databases in a shard cluster when you're connected directly to the mongod," but in that case, we should be explicit about this fact, rather than oblique.

:dbcommand:`copydb` and :dbcommand:`clone` do not produce
point-in-time snapshots of the source database. Write traffic to
the source database during the copy process may result in databases
with different contents.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

write operations to the destination could also theoretically affect the contents of the result database.

@tychoish
Copy link
Contributor

I'm making final edits to this before I merge things in.

Additional comments are for your own edification.

:dbcommand:`copydb`.

This is useful when you want to move a database from the development
environment to the production environment, or create a remote-branch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not something that happens or that will seem reasonable to users.

The reverse may happen, where you might seed development servers using a portion of production data. You may also migrate data into production from a staging environment which isn't the same. and also is much more likely to pass through your application rather than go directly using these commands.

@tychoish tychoish merged commit 414738f into mongodb:master Jul 26, 2012
Yingminzhou pushed a commit to mongodb-china/docs that referenced this pull request Dec 10, 2016
Yingminzhou pushed a commit to mongodb-china/docs that referenced this pull request Dec 10, 2016
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request May 22, 2025
* DOCSP-23928 Fixes relevant limitations

* DOCSP-23928 Fix per Lingzhi

* DOCSP-23928 Fixes per Ashley
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request May 22, 2025
* DOCSP-24967-viewsAsCollections-update

* DOCSP-24967-viewsAsCollections-update

* DOCSP-24967-viewsAsCollections-update

* DOCSP-24967-viewsAsCollections-update

* DOCSP-24967-viewsAsCollections-update

* DOCSP-24967-viewsAsCollections-update

* DOCSP-24967-viewsAsCollections-update

* DOCSP-24967-viewsAsCollections-update

* DOCSP-24967-viewsAsCollections-update

* DOCSP-24967-viewsAsCollections-update

Co-authored-by: jason-price-mongodb <[email protected]>
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 2, 2025
* (DOCSP-13189): Remove deprecated CRUD commands

(DOCSP-13189): Remove deprecated CRUD commands

* Updates per copy review
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 2, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 6, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 24, 2025
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jul 1, 2025
Updated the note on what a deprecated version means.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants