Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-2459

Omit some collections with mongodump

    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
    • Epic Link:
    • Sprint:
      Server 2.7.2

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: