Core Server
  1. Core Server
  2. SERVER-2846

Imprive copyDatabase not to require admin privileges

    Details

    • Type: New Feature New Feature
    • Status: Open Open
    • Priority: Major - P3 Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 1.6.5
    • Fix Version/s: planned but not scheduled
    • Component/s: Admin
    • Labels:
      None
    • Environment:
      MongoHQ
    • Backport:
      No
    • # Replies:
      1
    • Last comment by Customer:
      true

      Description

      I recently had to figure out how to copy one MongoHQ database to another. Because copyDatabase requires admin privileges I wasn't able to use it. The best I got is a mongodump and mongorestore, which wastes massive amounts of bandwidth for large databases hosted remotely. MongoHQ doesn't give users admin privileges to run this command and never will (http://support.mongohq.com/discussions/problems/551-i-tried-to-do-a-copy_database-after-a-drop-which-failed-and-now-my-database-has-no-collections-cant-login). Maybe there's a way to implement a "user-mode" copy of databases that would replicate non-system tables and not touch any admin functions?

        Activity

        • Comments
        Hide
        Daniel Doubrovkine
        added a comment -

        Article on trying copyDatabase in Ruby + #fail + fallback to mongodump/restore.
        http://code.dblock.org/ShowPost.aspx?id=189

        Show
        Daniel Doubrovkine
        added a comment - Article on trying copyDatabase in Ruby + #fail + fallback to mongodump/restore. http://code.dblock.org/ShowPost.aspx?id=189

          People

          • Assignee:
            Unassigned
            Reporter:
            Daniel Doubrovkine
            Participants:
            Last commenter:
            Ian Whalen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Days since reply:
              3 years, 4 weeks ago