<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:00:02 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-2459] Omit some collections with mongodump</title>
                <link>https://jira.mongodb.org/browse/SERVER-2459</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;My databases are each many collections, but some do not need backing up (they are thumbnails and similar)&lt;/p&gt;

&lt;p&gt;I&apos;d like an option to mongodump to specifically exclude some collections, ideally some sort of prefix or glob wildcard.  Some of these collections are actually gridfs hence more convoluted names.  Something like this would be great:&lt;/p&gt;

&lt;p&gt;    mongodump --exclude-collections &apos;thumbnails*&apos;&lt;/p&gt;

&lt;p&gt;It is also far easier to do this (blacklisting) than listing what I do want (whitelisting, current command line flags) since the collection names change all the time and it would be a pain to track.&lt;/p&gt;</description>
                <environment>Current stable on Ubuntu 10.10 64 bit</environment>
        <key id="14391">SERVER-2459</key>
            <summary>Omit some collections with mongodump</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="sverch">Shaun Verch</assignee>
                                    <reporter username="rogerbinns">Roger Binns</reporter>
                        <labels>
                            <label>community-team</label>
                    </labels>
                <created>Tue, 1 Feb 2011 21:47:27 +0000</created>
                <updated>Tue, 12 Jul 2016 00:19:40 +0000</updated>
                            <resolved>Fri, 13 Jun 2014 14:59:43 +0000</resolved>
                                                    <fixVersion>2.7.2</fixVersion>
                                    <component>Tools</component>
                                        <votes>43</votes>
                                    <watches>36</watches>
                                                                                                                <comments>
                            <comment id="620221" author="xgen-internal-githook" created="Fri, 13 Jun 2014 14:59:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;Shaun Verch&apos;, u&apos;email&apos;: u&apos;shaun.verch@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2459&quot; title=&quot;Omit some collections with mongodump&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2459&quot;&gt;&lt;del&gt;SERVER-2459&lt;/del&gt;&lt;/a&gt; Add excludeCollection and excludeCollectionsWithPrefix options to mongodump&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c9b6f371a00112af31b5fc76297ab3605d47dd25&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c9b6f371a00112af31b5fc76297ab3605d47dd25&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="589151" author="mkonecny" created="Mon, 19 May 2014 18:05:02 +0000"  >&lt;p&gt;+1 Please add this feature.&lt;/p&gt;</comment>
                            <comment id="585785" author="matt.kangas@10gen.com" created="Fri, 16 May 2014 03:00:30 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/pull/163&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;pull/163&lt;/a&gt; had 18 additional &quot;+1&quot; comments on it, so clearly there is strong interest in this feature request. But it only supported excluding exactly one collection.&lt;/p&gt;

&lt;p&gt;A more general purpose solution would support one or more of:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;&quot;--excludeCollection&quot; which can be specified multiple times&lt;/li&gt;
	&lt;li&gt;&quot;--excludeCollectionsWithPrefix&quot; - match on prefix&lt;/li&gt;
	&lt;li&gt;Some kind of glob-like pattern matching, as originally suggested&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;A new pattern matching language is less desirable from our perspective. But options 1 and 2 seem viable and widely useful.&lt;/p&gt;</comment>
                            <comment id="568276" author="sorinn" created="Wed, 30 Apr 2014 16:42:29 +0000"  >&lt;p&gt;Come on guys, this is ridiculous, it&apos;s such an easy thing to implement, you already have a pull request, and it saves alot of time and headaches ....&lt;/p&gt;</comment>
                            <comment id="524350" author="niccottrell" created="Thu, 27 Mar 2014 09:51:15 +0000"  >&lt;p&gt;Yeah - i have a capped collection containing a sort of running log which never needs backing up. A flag to skip capped collection would also be useful!&lt;/p&gt;</comment>
                            <comment id="433673" author="stephen@jemstep.com" created="Tue, 1 Oct 2013 08:19:22 +0000"  >&lt;p&gt;Is there any reason something this simple has not been done in the nearly 3 years this issue has been open?&lt;br/&gt;
Someone even wrote a patch  and a pull request, they did the work &lt;b&gt;for&lt;/b&gt; you.&lt;/p&gt;</comment>
                            <comment id="321501" author="russell.smith@ukd1.co.uk" created="Thu, 25 Apr 2013 16:44:11 +0000"  >&lt;p&gt;I&apos;m coming across this issue when trying to use a read-only user...which could be fixed with this ticket;&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;retinalols:backups russ$ mongodump --forceTableScan -h xxxxxxx --port xxxxxx -u backup -p xxxxxxx -d xxxxxx&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;connected to: xxxxxxx:xxxxxxx&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;Wed Apr 24 17:00:21.635 DATABASE: xxxxxxx	 to dump/xxxxxxx&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;Wed Apr 24 17:00:21.801 xxxxxxx.system.indexes to dump/xxxxxxx/system.indexes.bson&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;Wed Apr 24 17:00:22.048 65 objects&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;Wed Apr 24 17:00:22.049 xxxxxxx.system.users to dump/xxxxxxx/system.users.bson&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;assertion: 11010 count fails:{ ok: 0.0, errmsg: &quot;unauthorized&quot; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="283192" author="sanket" created="Thu, 7 Mar 2013 07:09:38 +0000"  >&lt;p&gt;I have only single collection of 30% of  total size . It will be great if i can dump with excluding this collections&lt;/p&gt;</comment>
                            <comment id="197405" author="evan@shopcade.com" created="Fri, 23 Nov 2012 17:00:41 +0000"  >&lt;p&gt;i have a 80GB collection that would be ideal to be outside of normal dumps.&lt;/p&gt;</comment>
                            <comment id="118155" author="cferry@secondmarket.com" created="Thu, 10 May 2012 15:11:23 +0000"  >&lt;p&gt;What&apos;s going on with this request?  I have a 45GB collection that I don&apos;t want to dump.  &lt;br/&gt;
This seems like a logical feature to have in a database backup utility.&lt;/p&gt;</comment>
                            <comment id="80580" author="tedb" created="Tue, 17 Jan 2012 23:16:18 +0000"  >&lt;p&gt;FYI, I forked mongo on Github and wrote a patch to implement this feature. I plan to send a pull request. My fork is &lt;a href=&quot;https://github.com/tedb/mongo&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/tedb/mongo&lt;/a&gt; .  Pull request is at &lt;a href=&quot;https://github.com/mongodb/mongo/pull/163&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/163&lt;/a&gt; .&lt;/p&gt;</comment>
                            <comment id="70745" author="eliot" created="Sun, 4 Dec 2011 15:13:30 +0000"  >&lt;p&gt;Not very soon - I would recommend whitelisting for now.&lt;/p&gt;</comment>
                            <comment id="70733" author="grahamhar" created="Sun, 4 Dec 2011 11:45:40 +0000"  >&lt;p&gt;Any chance this is going to be scheduled in soon, major problem for me backing up GB of data I don&apos;t need.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="15386">SERVER-2871</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10220">
                    <name>Tested</name>
                                            <outwardlinks description="tested by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>13.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 4 Dec 2011 11:45:40 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 35 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-18</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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 35 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>cferry@secondmarket.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>evan@shopcade.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>grahamhar</customfieldvalue>
            <customfieldvalue>mkonecny</customfieldvalue>
            <customfieldvalue>matt.kangas</customfieldvalue>
            <customfieldvalue>niccottrell</customfieldvalue>
            <customfieldvalue>rogerbinns</customfieldvalue>
            <customfieldvalue>russell.smith@ukd1.co.uk</customfieldvalue>
            <customfieldvalue>sanket</customfieldvalue>
            <customfieldvalue>sverch</customfieldvalue>
            <customfieldvalue>sorinn</customfieldvalue>
            <customfieldvalue>stephen@jemstep.com</customfieldvalue>
            <customfieldvalue>tedb</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp7cv:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2069</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="174">Server 2.7.2</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|hsztun:</customfieldvalue>

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