From d958762e86609929ab13fb4685b94e95f1799cb3 Mon Sep 17 00:00:00 2001 From: devdude13 Date: Fri, 19 Apr 2013 19:40:24 -0300 Subject: [PATCH] Update db.copyDatabase.txt Including an example. There are at least a few cases on the web where folks ( i hit this too) neglected to put quotes around the database name. Hopefully with a live example that will no longer happen --- source/reference/method/db.copyDatabase.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/reference/method/db.copyDatabase.txt b/source/reference/method/db.copyDatabase.txt index 89aea01db4a..e3449ed42e2 100644 --- a/source/reference/method/db.copyDatabase.txt +++ b/source/reference/method/db.copyDatabase.txt @@ -27,3 +27,7 @@ db.copyDatabase() This function provides a wrapper around the MongoDB :term:`database command` ":dbcommand:`copydb`." The :dbcommand:`clone` database command provides related functionality. + +Example + +> db.copyDatabase('mydb','copyofmydb')