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

Omit some collections with mongodump

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.7.2
    • Affects Version/s: None
    • Component/s: Tools
    • Environment:
      Current stable on Ubuntu 10.10 64 bit
    • Fully Compatible
    • Server 2.7.2

      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.

            Votes:
            43 Vote for this issue
            Watchers:
            36 Start watching this issue

              Created:
              Updated:
              Resolved: