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

Omit some collections with mongodump

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 2.7.2
    • Tools
    • Current stable on Ubuntu 10.10 64 bit
    • Fully Compatible
    • 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:
              36 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: