Skip to content

DOCS-6410: Comment on: "manual/reference/method/db.copyDatabase.txt" #2612

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

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions source/includes/extracts-fact-copydb-behavior-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ content: |

- {{copydb}} creates the target database if it does not exist.

- If the target database exists and no collection from the source database
exists in the target database, {{copydb}} copies the collections from
the source database to the target database. If any collection from the
source database exists in the target database, {{copydb}} errors out and
does not copy any remaining collections from the source database.

- {{copydb}} requires enough free disk space on the host
instance for the copied database. Use the :method:`db.stats()`
operation to check the size of the database on the source
Expand Down