<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:54:33 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[DOCS-7573] Clarify the behavior of mongorestore --archive with --db or --collection options </title>
                <link>https://jira.mongodb.org/browse/DOCS-7573</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://docs.mongodb.org/manual/reference/program/mongorestore/#cmdoption--db&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.org/manual/reference/program/mongorestore/#cmdoption--db&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Specifies a database for mongorestore to restore data into. If the database does not exist, mongorestore creates the database. If you do not specify a &amp;lt;db&amp;gt;, mongorestore creates new databases that correspond to the databases where data originated and data may be overwritten. Use this option to restore data into a MongoDB instance that already has data.&lt;/p&gt;

&lt;p&gt;--db does not control which BSON files mongorestore restores. You must use the mongorestore path option to limit that restored data.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;However, as noted at &lt;a href=&quot;https://docs.mongodb.org/manual/reference/program/mongorestore/#restore-a-database-from-an-archive-file&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.org/manual/reference/program/mongorestore/#restore-a-database-from-an-archive-file&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;--db&lt;/tt&gt; is used to select which database is restored from the archive. &lt;/p&gt;

&lt;p&gt;If &lt;tt&gt;--db&lt;/tt&gt; or &lt;tt&gt;&amp;#45;&amp;#45;collection&lt;/tt&gt; specifies a database or collection not contained in the dump archive no data will be restored:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;mongodump --archive=test.archive --db test --collection foo&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2016-04-04T16:44:44.555-0400	writing test.foo to archive &apos;test.archive&apos;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2016-04-04T16:44:44.555-0400	done dumping test.foo (1 document)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;mongorestore --archive=test.archive --db test --collection bar&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2016-04-04T16:44:50.917-0400	setting number of parallel collections to number of parallel collections in archive (8)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2016-04-04T16:44:50.942-0400	creating intents for archive&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2016-04-04T16:44:50.986-0400	done&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;mongorestore --archive=test.archive --db test --collection foo&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2016-04-04T16:44:56.531-0400	setting number of parallel collections to number of parallel collections in archive (8)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2016-04-04T16:44:56.556-0400	creating intents for archive&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2016-04-04T16:44:56.619-0400	reading metadata for test.foo from archive &apos;test.archive&apos;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2016-04-04T16:44:56.619-0400	restoring test.foo from archive &apos;test.archive&apos;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2016-04-04T16:44:56.626-0400	error: E11000 duplicate key error collection: test.foo index: _id_ dup key: { : ObjectId(&apos;5702d13cd25b3ef5b9fe55b3&apos;) }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2016-04-04T16:44:56.928-0400	restoring indexes for collection test.foo from metadata&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2016-04-04T16:44:56.928-0400	finished restoring test.foo (1 document)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2016-04-04T16:44:56.928-0400	done&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;I think this distinction should be highlighted as part of the description of the &lt;tt&gt;--db&lt;/tt&gt; option quoted above.&lt;/p&gt;</description>
                <environment></environment>
        <key id="277348">DOCS-7573</key>
            <summary>Clarify the behavior of mongorestore --archive with --db or --collection options </summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="kay.kim@mongodb.com">Kay Kim</assignee>
                                    <reporter username="kelsey.schubert@mongodb.com">Kelsey Schubert</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Apr 2016 20:53:00 +0000</created>
                <updated>Mon, 30 Oct 2023 21:34:16 +0000</updated>
                            <resolved>Sat, 13 Jul 2019 17:00:37 +0000</resolved>
                                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>manual</component>
                    <component>Server</component>
                    <component>tools</component>
                        <due></due>
                            <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2324227" author="xgen-internal-githook" created="Sat, 13 Jul 2019 15:02:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kay Kim&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;, &apos;username&apos;: &apos;kay-kim&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-7573&quot; title=&quot;Clarify the behavior of mongorestore --archive with --db or --collection options &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-7573&quot;&gt;&lt;del&gt;DOCS-7573&lt;/del&gt;&lt;/a&gt;,&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12579&quot; title=&quot;mongorestore docs show deprecated example with --archive and --db&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12579&quot;&gt;&lt;del&gt;DOCS-12579&lt;/del&gt;&lt;/a&gt;: update output messages - different from 4.2&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/7d203dc30dbd0c3eca1b36c0f2c74dcc3fdada13&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/7d203dc30dbd0c3eca1b36c0f2c74dcc3fdada13&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2324225" author="xgen-internal-githook" created="Sat, 13 Jul 2019 15:02:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kay Kim&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;, &apos;username&apos;: &apos;kay-kim&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-7573&quot; title=&quot;Clarify the behavior of mongorestore --archive with --db or --collection options &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-7573&quot;&gt;&lt;del&gt;DOCS-7573&lt;/del&gt;&lt;/a&gt;,&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12579&quot; title=&quot;mongorestore docs show deprecated example with --archive and --db&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12579&quot;&gt;&lt;del&gt;DOCS-12579&lt;/del&gt;&lt;/a&gt;: update mongorestore in prep for go changes&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/a58e342944ccb4e9f621a08766795dc150e6de12&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/a58e342944ccb4e9f621a08766795dc150e6de12&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2324217" author="xgen-internal-githook" created="Sat, 13 Jul 2019 14:32:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kay Kim&apos;, &apos;username&apos;: &apos;kay-kim&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-7573&quot; title=&quot;Clarify the behavior of mongorestore --archive with --db or --collection options &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-7573&quot;&gt;&lt;del&gt;DOCS-7573&lt;/del&gt;&lt;/a&gt;,&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12579&quot; title=&quot;mongorestore docs show deprecated example with --archive and --db&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12579&quot;&gt;&lt;del&gt;DOCS-12579&lt;/del&gt;&lt;/a&gt;: update output messages - different from 4.2&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/40fd5f6c97a861e37a585a720d667ed22124d30c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/40fd5f6c97a861e37a585a720d667ed22124d30c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2324215" author="xgen-internal-githook" created="Sat, 13 Jul 2019 14:32:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kay Kim&apos;, &apos;username&apos;: &apos;kay-kim&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-7573&quot; title=&quot;Clarify the behavior of mongorestore --archive with --db or --collection options &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-7573&quot;&gt;&lt;del&gt;DOCS-7573&lt;/del&gt;&lt;/a&gt;,&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12579&quot; title=&quot;mongorestore docs show deprecated example with --archive and --db&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12579&quot;&gt;&lt;del&gt;DOCS-12579&lt;/del&gt;&lt;/a&gt;: update mongorestore in prep for go changes&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/c93d1431f85c927c1cb34d0163d7ca30c3c277d6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/c93d1431f85c927c1cb34d0163d7ca30c3c277d6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2324213" author="xgen-internal-githook" created="Sat, 13 Jul 2019 14:13:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kay Kim&apos;, &apos;username&apos;: &apos;kay-kim&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-7573&quot; title=&quot;Clarify the behavior of mongorestore --archive with --db or --collection options &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-7573&quot;&gt;&lt;del&gt;DOCS-7573&lt;/del&gt;&lt;/a&gt;,&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12579&quot; title=&quot;mongorestore docs show deprecated example with --archive and --db&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12579&quot;&gt;&lt;del&gt;DOCS-12579&lt;/del&gt;&lt;/a&gt;: update output messages - different from 4.2&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/2bcb5d93d6577bc0da5c35232173198a19fb541a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/2bcb5d93d6577bc0da5c35232173198a19fb541a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2323926" author="xgen-internal-githook" created="Fri, 12 Jul 2019 21:06:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kay Kim&apos;, &apos;username&apos;: &apos;kay-kim&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-7573&quot; title=&quot;Clarify the behavior of mongorestore --archive with --db or --collection options &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-7573&quot;&gt;&lt;del&gt;DOCS-7573&lt;/del&gt;&lt;/a&gt;,&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12579&quot; title=&quot;mongorestore docs show deprecated example with --archive and --db&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12579&quot;&gt;&lt;del&gt;DOCS-12579&lt;/del&gt;&lt;/a&gt;: update mongorestore in prep for go changes&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/86a076210a7c6ea07b5b194d7735712b412242cf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/86a076210a7c6ea07b5b194d7735712b412242cf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2323919" author="xgen-internal-githook" created="Fri, 12 Jul 2019 21:04:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kay Kim&apos;, &apos;username&apos;: &apos;kay-kim&apos;, &apos;email&apos;: &apos;kay.kim@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-7573&quot; title=&quot;Clarify the behavior of mongorestore --archive with --db or --collection options &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-7573&quot;&gt;&lt;del&gt;DOCS-7573&lt;/del&gt;&lt;/a&gt;,&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12579&quot; title=&quot;mongorestore docs show deprecated example with --archive and --db&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12579&quot;&gt;&lt;del&gt;DOCS-12579&lt;/del&gt;&lt;/a&gt;: update mongorestore in prep for go changes&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/0390bc4026820f752e42f07f42bad31c2f73624f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/0390bc4026820f752e42f07f42bad31c2f73624f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1310181" author="bkumar@nativo.net" created="Wed, 29 Jun 2016 21:36:41 +0000"  >&lt;p&gt;The verbose log also does not provide any error message or warning if you specify a new db name while restoring.&lt;/p&gt;

&lt;p&gt;Spent half a day debugging why my restore doesn&apos;t work.&lt;/p&gt;

&lt;p&gt;mongodump --host localhost --archive=myCollection.gz --gzip --db &apos;MyDB&apos; --collection myCollection -vvvvvv&lt;br/&gt;
2016-06-29T14:18:15.492-0700	enqueued collection &apos;MyDB.myCollection&apos;&lt;br/&gt;
2016-06-29T14:18:15.493-0700	dump phase I: metadata, indexes, users, roles, version&lt;br/&gt;
2016-06-29T14:18:15.493-0700		reading indexes for `MyDB.myCollection`&lt;br/&gt;
2016-06-29T14:18:15.495-0700	archive prelude MyDB.myCollection&lt;br/&gt;
2016-06-29T14:18:15.495-0700	dump phase II: regular collections&lt;br/&gt;
2016-06-29T14:18:15.495-0700	finalizing intent manager with legacy prioritizer&lt;br/&gt;
2016-06-29T14:18:15.495-0700	dumping up to 1 collections in parallel&lt;br/&gt;
2016-06-29T14:18:15.495-0700	starting dump routine with id=0&lt;br/&gt;
2016-06-29T14:18:15.495-0700	MuxIn open MyDB.myCollection&lt;br/&gt;
2016-06-29T14:18:15.496-0700	will listen for SIGTERM, SIGINT and SIGHUP&lt;br/&gt;
2016-06-29T14:18:15.497-0700	Mux open namespace MyDB.myCollection&lt;br/&gt;
2016-06-29T14:18:15.497-0700	writing MyDB.myCollection to archive &apos;myCollection.gz&apos;&lt;br/&gt;
2016-06-29T14:18:15.498-0700	counted 3 documents in MyDB.myCollection&lt;br/&gt;
2016-06-29T14:18:15.498-0700	done dumping MyDB.myCollection (3 documents)&lt;br/&gt;
2016-06-29T14:18:15.498-0700	MuxIn close MyDB.myCollection&lt;br/&gt;
2016-06-29T14:18:15.498-0700	Mux close namespace MyDB.myCollection&lt;br/&gt;
2016-06-29T14:18:15.498-0700	ending dump routine with id=0, no more work to do&lt;br/&gt;
2016-06-29T14:18:15.498-0700	dump phase III: the oplog&lt;br/&gt;
2016-06-29T14:18:15.498-0700	done&lt;br/&gt;
2016-06-29T14:18:15.498-0700	Mux finish&lt;br/&gt;
2016-06-29T14:18:15.499-0700	mux completed successfully&lt;/p&gt;

&lt;p&gt;mongorestore --gzip --archive=myCollection.gz --db MyDB_Restored -vvvvvvv&lt;br/&gt;
2016-06-29T14:33:04.993-0700	checking options&lt;br/&gt;
2016-06-29T14:33:04.998-0700		dumping with object check disabled&lt;br/&gt;
2016-06-29T14:33:05.013-0700	connected to node type: standalone&lt;br/&gt;
2016-06-29T14:33:05.014-0700	standalone server: setting write concern w to 1&lt;br/&gt;
2016-06-29T14:33:05.014-0700	using write concern: w=&apos;1&apos;, j=false, fsync=false, wtimeout=0&lt;br/&gt;
2016-06-29T14:33:05.074-0700	archive prelude MyDB.myCollection&lt;br/&gt;
2016-06-29T14:33:05.074-0700	archive format version &quot;0.1&quot;&lt;br/&gt;
2016-06-29T14:33:05.074-0700	archive server version &quot;3.2.1&quot;&lt;br/&gt;
2016-06-29T14:33:05.074-0700	archive tool version &quot;3.2.1&quot;&lt;br/&gt;
2016-06-29T14:33:05.091-0700	creating intents for archive&lt;br/&gt;
2016-06-29T14:33:05.092-0700	using  as dump root directory&lt;br/&gt;
2016-06-29T14:33:05.093-0700	reading collections for database MyDB in MyDB&lt;br/&gt;
2016-06-29T14:33:05.094-0700	demux Open&lt;br/&gt;
2016-06-29T14:33:05.094-0700	found collection MyDB.myCollection metadata to restore&lt;br/&gt;
2016-06-29T14:33:05.214-0700	demux namespaceHeader: &lt;/p&gt;
{MyDB myCollection false 0}
&lt;p&gt;2016-06-29T14:33:05.214-0700	demux namespaceHeader: &lt;/p&gt;
{MyDB myCollection true -6057897897989027830}
&lt;p&gt;2016-06-29T14:33:05.215-0700	demux checksum for namespace MyDB.myCollection is correct (-6057897897989027830), 87 bytes&lt;br/&gt;
2016-06-29T14:33:05.215-0700	demux End&lt;br/&gt;
2016-06-29T14:33:05.215-0700	demux finishing (err:&amp;lt;nil&amp;gt;)&lt;br/&gt;
2016-06-29T14:33:05.215-0700	restoring up to 4 collections in parallel&lt;br/&gt;
2016-06-29T14:33:05.215-0700	starting restore routine with id=3&lt;br/&gt;
2016-06-29T14:33:05.215-0700	ending restore routine with id=3, no more work to do&lt;br/&gt;
2016-06-29T14:33:05.215-0700	starting restore routine with id=1&lt;br/&gt;
2016-06-29T14:33:05.215-0700	ending restore routine with id=1, no more work to do&lt;br/&gt;
2016-06-29T14:33:05.215-0700	starting restore routine with id=0&lt;br/&gt;
2016-06-29T14:33:05.215-0700	ending restore routine with id=0, no more work to do&lt;br/&gt;
2016-06-29T14:33:05.215-0700	will listen for SIGTERM and SIGINT&lt;br/&gt;
2016-06-29T14:33:05.215-0700	starting restore routine with id=2&lt;br/&gt;
2016-06-29T14:33:05.215-0700	ending restore routine with id=2, no more work to do&lt;br/&gt;
2016-06-29T14:33:05.215-0700	done&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="724784">DOCS-12579</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="277132">SERVER-23488</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 29 Jun 2016 21:36:41 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 30 weeks, 4 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DOCSP-1769</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 30 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>bkumar@nativo.net</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmvnj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsq7lb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrz4nb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>