<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:15:47 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>[SERVER-7860] mongodump do not work properly in &quot;print to stdout&quot; mode</title>
                <link>https://jira.mongodb.org/browse/SERVER-7860</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;when trying to dump the database to the specified dir, it seems ok:&lt;br/&gt;
logger-01 ~ # mongodump  --host localhost  -d logger -o tmp&lt;br/&gt;
connected to: localhost&lt;br/&gt;
Thu Dec  6 13:31:54 DATABASE: logger     to     tmp/logger&lt;br/&gt;
Thu Dec  6 13:31:54     logger.xxxxx to tmp/logger/xxxxx.bson&lt;br/&gt;
Thu Dec  6 13:31:54 doing snapshot query&lt;br/&gt;
Thu Dec  6 13:31:54              2 objects&lt;br/&gt;
Thu Dec  6 13:31:54     Metadata for logger.xxxxx to tmp/logger/xxxxx.metadata.json&lt;br/&gt;
Thu Dec  6 13:31:54     logger.SoapTradeApi to tmp/logger/SoapTradeApi.bson&lt;br/&gt;
Thu Dec  6 13:31:54 doing snapshot query&lt;br/&gt;
Thu Dec  6 13:31:57             899600/2592468  34%     (objects)&lt;br/&gt;
^C&lt;/p&gt;

&lt;p&gt;when trying to do the same, but to the stdout:&lt;br/&gt;
logger-01 ~ # mongodump --host localhost -d logger -o -&lt;br/&gt;
connected to: localhost&lt;br/&gt;
Thu Dec  6 13:31:17 You must specify database and collection to print to stdout&lt;/p&gt;

&lt;p&gt;it`s verys usable to send output to the gzip or other compressor and compress the data &apos;on the fly&apos; with out huge disk usage.&lt;/p&gt;</description>
                <environment>logger-01 ~ # uname -a&lt;br/&gt;
Linux logger-01 3.3.8-gentoo #5 SMP Fri Aug 3 11:30:37 MSK 2012 x86_64 Intel(R) Xeon(R) CPU X5650 @ 2.67GHz GenuineIntel GNU/Linux</environment>
        <key id="58454">SERVER-7860</key>
            <summary>mongodump do not work properly in &quot;print to stdout&quot; mode</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="-1">Unassigned</assignee>
                                    <reporter username="kron">Denis Bozhok</reporter>
                        <labels>
                    </labels>
                <created>Thu, 6 Dec 2012 09:45:07 +0000</created>
                <updated>Sat, 9 Jul 2016 21:09:31 +0000</updated>
                            <resolved>Sat, 8 Dec 2012 06:33:47 +0000</resolved>
                                    <version>2.2.0</version>
                                                    <component>Tools</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="453716" author="msangel" created="Fri, 8 Nov 2013 17:59:46 +0000"  >&lt;p&gt;but there must be another way to dump all collections from db to one *.tar file&lt;/p&gt;</comment>
                            <comment id="212189" author="dan@10gen.com" created="Tue, 11 Dec 2012 16:15:29 +0000"  >&lt;p&gt;because mongodump does the logic you&apos;ve described for you and outputs each collection to a separate file.&lt;/p&gt;</comment>
                            <comment id="211880" author="kron" created="Tue, 11 Dec 2012 07:05:37 +0000"  >&lt;p&gt;So, if I need to dump all databases with all collections inside, firstly I have to take a list of all databases and collections and then pass it to the mongodump?&lt;br/&gt;
But there is no need to specify collection when dumping to the disk. Why?&lt;/p&gt;</comment>
                            <comment id="211597" author="dan@10gen.com" created="Mon, 10 Dec 2012 23:28:47 +0000"  >&lt;p&gt;You will have to script this on the client side.&lt;/p&gt;</comment>
                            <comment id="210831" author="kron" created="Mon, 10 Dec 2012 07:25:56 +0000"  >&lt;p&gt;Thanks for your reply.&lt;br/&gt;
But what if I want to dump all collections to the stdout?&lt;/p&gt;</comment>
                            <comment id="209596" author="dan@10gen.com" created="Sat, 8 Dec 2012 06:33:47 +0000"  >&lt;p&gt;As the error message says, you need to specify a collection when using mongodump with stdout.  There is no binary delimiter between different collections.&lt;/p&gt;

&lt;p&gt;We&apos;ll add a note to the &lt;a href=&quot;http://docs.mongodb.org/manual/reference/mongodump/#cmdoption-mongodump--out&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodump documentation&lt;/a&gt;&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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 8 Dec 2012 06:33:47 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 14 weeks, 5 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 14 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>kron</customfieldvalue>
            <customfieldvalue>msangel</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnfhb:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>35895</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;execute mongodump --host localhost -d &amp;lt;dbname&amp;gt; -o -&lt;/p&gt;</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_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht0qxb:</customfieldvalue>

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