From 6719a6154206af1baae0cbef1fcf461e43723855 Mon Sep 17 00:00:00 2001 From: "Tim Slavin (MongoDB)" Date: Thu, 24 Jul 2014 14:19:44 -0400 Subject: [PATCH] DOCS-2444: Add note to mongodump docs about existing files --- source/includes/fact-mongodump-overwrite-files.rst | 4 ++++ source/reference/program/mongodump.txt | 2 ++ source/tutorial/backup-with-mongodump.txt | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 source/includes/fact-mongodump-overwrite-files.rst diff --git a/source/includes/fact-mongodump-overwrite-files.rst b/source/includes/fact-mongodump-overwrite-files.rst new file mode 100644 index 00000000000..7a9c0c08e06 --- /dev/null +++ b/source/includes/fact-mongodump-overwrite-files.rst @@ -0,0 +1,4 @@ +:program:`mongodump` overwrites output files if they exist in the backup +data folder. Before running the :program:`mongodump` command multiple +times, ensure you no longer need a file in the ``dump/`` folder, or +rename folders or files. diff --git a/source/reference/program/mongodump.txt b/source/reference/program/mongodump.txt index 40001ec2167..0b085455710 100644 --- a/source/reference/program/mongodump.txt +++ b/source/reference/program/mongodump.txt @@ -39,6 +39,8 @@ from :term:`secondary` members of the set. .. include:: /includes/warning-fsync-lock-mongodump.rst +.. include:: /includes/fact-mongodump-overwrite-files.rst + Required Access --------------- diff --git a/source/tutorial/backup-with-mongodump.txt b/source/tutorial/backup-with-mongodump.txt index a7a572c9b43..3e7f3f0d92d 100644 --- a/source/tutorial/backup-with-mongodump.txt +++ b/source/tutorial/backup-with-mongodump.txt @@ -93,6 +93,8 @@ This operation creates a dump of the collection named ``myCollection`` from the database ``test`` in a :file:`dump/` subdirectory of the current working directory. +.. include:: /includes/fact-mongodump-overwrite-files.rst + Point in Time Operation Using Oplogs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~