Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.2
    • Component/s: Tools
    • Labels:
    • Environment:
      Current stable on Ubuntu 10.10 64 bit
    • Backwards Compatibility:
      Fully Compatible
    • Driver Changes:
      Not Needed
    • Epic Link:

      Description

      My databases are each many collections, but some do not need backing up (they are thumbnails and similar)

      I'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:

      mongodump --exclude-collections 'thumbnails*'

      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.

        Issue Links

          Activity

          Hide
          niccottrell Nic Cottrell added a comment -

          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!

          Show
          niccottrell Nic Cottrell added a comment - 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!
          Hide
          sorinn Sorin Neacsu added a comment -

          Come on guys, this is ridiculous, it's such an easy thing to implement, you already have a pull request, and it saves alot of time and headaches ....

          Show
          sorinn Sorin Neacsu added a comment - Come on guys, this is ridiculous, it's such an easy thing to implement, you already have a pull request, and it saves alot of time and headaches ....
          Hide
          matt.kangas@10gen.com Matt Kangas added a comment -

          pull/163 had 18 additional "+1" comments on it, so clearly there is strong interest in this feature request. But it only supported excluding exactly one collection.

          A more general purpose solution would support one or more of:

          1. "--excludeCollection" which can be specified multiple times
          2. "--excludeCollectionsWithPrefix" - match on prefix
          3. Some kind of glob-like pattern matching, as originally suggested

          A new pattern matching language is less desirable from our perspective. But options 1 and 2 seem viable and widely useful.

          Show
          matt.kangas@10gen.com Matt Kangas added a comment - pull/163 had 18 additional "+1" comments on it, so clearly there is strong interest in this feature request. But it only supported excluding exactly one collection. A more general purpose solution would support one or more of: "--excludeCollection" which can be specified multiple times "--excludeCollectionsWithPrefix" - match on prefix Some kind of glob-like pattern matching, as originally suggested A new pattern matching language is less desirable from our perspective. But options 1 and 2 seem viable and widely useful.
          Hide
          mkonecny Martin Konecny added a comment -

          +1 Please add this feature.

          Show
          mkonecny Martin Konecny added a comment - +1 Please add this feature.
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

          Message: SERVER-2459 Add excludeCollection and excludeCollectionsWithPrefix options to mongodump
          Branch: master
          https://github.com/mongodb/mongo/commit/c9b6f371a00112af31b5fc76297ab3605d47dd25

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'} Message: SERVER-2459 Add excludeCollection and excludeCollectionsWithPrefix options to mongodump Branch: master https://github.com/mongodb/mongo/commit/c9b6f371a00112af31b5fc76297ab3605d47dd25

            People

            • Votes:
              43 Vote for this issue
              Watchers:
              35 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                41 weeks ago
                Date of 1st Reply:

                Agile