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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~