<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:54:43 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-7649] mongorestore bug</title>
                <link>https://jira.mongodb.org/browse/DOCS-7649</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;I dumped my database with &lt;tt&gt;mongodump&lt;/tt&gt; and then tried to restore it with mongorestore on other server with other mongodb installation. But I found unexpected behavior: first time when I runned &lt;tt&gt;mongorestore&lt;/tt&gt; the database was restored correctly, but after I restarted mongodb server (there was need to change the bind IP), removed imported database and tried to import it again, it was imported without specified in &lt;tt&gt;--db&lt;/tt&gt; argument &lt;b&gt;database name&lt;/b&gt; but as &lt;b&gt;parent directory name&lt;/b&gt; of backup. Then, I changed command for restore and tried again - and &lt;tt&gt;mongorestore&lt;/tt&gt; restored correctly.&lt;/p&gt;

&lt;p&gt;I tested some variants of &lt;tt&gt;mongorestore&lt;/tt&gt; command (including ommiting the &lt;tt&gt;--db&lt;/tt&gt; argument and leaving the backup directory as last argument) and found that after restarting the mongodb daemon it doesn&apos;t matter what is changed in &lt;em&gt;command&lt;/em&gt; - correct restoring is always after changing &lt;em&gt;command&lt;/em&gt;.&lt;/p&gt;
</description>
                <environment>Ubuntu 14.04 server&lt;br/&gt;
MongoDB version 2.4.9 last package from apt-get&lt;br/&gt;
&lt;br/&gt;
*Location*: &lt;a href=&quot;https://docs.mongodb.org/manual/reference/program/mongorestore/#bin.mongorestore&quot;&gt;https://docs.mongodb.org/manual/reference/program/mongorestore/#bin.mongorestore&lt;/a&gt;&lt;br/&gt;
*User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36&lt;br/&gt;
*Referrer*: &lt;a href=&quot;https://docs.mongodb.org/manual/tutorial/backup-and-restore-tools/&quot;&gt;https://docs.mongodb.org/manual/tutorial/backup-and-restore-tools/&lt;/a&gt;&lt;br/&gt;
*Screen Resolution*: 1920 x 1080&lt;br/&gt;
*repo*: docs&lt;br/&gt;
*source*: reference/program/mongorestore&lt;br/&gt;
</environment>
        <key id="279737">DOCS-7649</key>
            <summary>mongorestore bug</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="4">Incomplete</resolution>
                                        <assignee username="allison.moore@mongodb.com">Allison Reinheimer Moore</assignee>
                                    <reporter username="xgen-internal-docs">Docs Collector User</reporter>
                        <labels>
                            <label>collector-298ba4e7</label>
                            <label>docs-triage</label>
                    </labels>
                <created>Thu, 14 Apr 2016 17:15:11 +0000</created>
                <updated>Mon, 30 Oct 2023 21:33:43 +0000</updated>
                            <resolved>Fri, 20 Oct 2017 15:31:00 +0000</resolved>
                                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>tools</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1236215" author="allison.moore@10gen.com" created="Thu, 14 Apr 2016 18:50:25 +0000"  >&lt;p&gt;Thanks, and you&apos;re using MongoDB 2.4?&lt;/p&gt;</comment>
                            <comment id="1236167" author="alex025" created="Thu, 14 Apr 2016 18:13:39 +0000"  >&lt;p&gt;Of course.&lt;br/&gt;
Dump:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;# mongodump --db mydb --out ./_db&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Restore:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;# mongorestore --db mydb --dir ./_db&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The problem was that &lt;b&gt;the first time&lt;/b&gt; when I tried to restore, it restored correctly in &lt;b&gt;mydb&lt;/b&gt; database, but after restarting &lt;tt&gt;mongodb&lt;/tt&gt; server, removing restored db and tried again - it restored in &lt;b&gt;_db&lt;/b&gt; database, even in &lt;tt&gt;-&lt;del&gt;db&lt;/tt&gt; argument was &lt;b&gt;mydb&lt;/b&gt;. But, as I sayed, if now I change something in command, for example, add the &lt;tt&gt;&lt;/del&gt;-host 127.0.0.1&lt;/tt&gt;, &lt;tt&gt;mongorestore&lt;/tt&gt; will correctly restore it in &lt;b&gt;mydb&lt;/b&gt; database&lt;/p&gt;

&lt;p&gt;P.S. All theese commands I wrote in a &lt;tt&gt;bash&lt;/tt&gt; script, and executed it. Now I tried it again, but direct from terminal. After that the problem temporary disappear..&lt;/p&gt;</comment>
                            <comment id="1236082" author="allison.moore@10gen.com" created="Thu, 14 Apr 2016 17:24:18 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=alex025&quot; class=&quot;user-hover&quot; rel=&quot;alex025&quot;&gt;alex025&lt;/a&gt; Can you provide the &lt;tt&gt;mongorestore&lt;/tt&gt; commands that you ran when you observed the expected and unexpected behaviour? I&apos;m having some trouble understanding what issue you&apos;ve had. Thanks!&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 14 Apr 2016 17:24:18 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 43 weeks, 6 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_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>
                            7 years, 43 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>alex025</customfieldvalue>
            <customfieldvalue>allison.moore@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-docs</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmus7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hskf93:</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|hrzir3:</customfieldvalue>

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