Uploaded image for project: 'MongoDB CLI Tools'
  1. MongoDB CLI Tools
  2. TOOLS-1163

mongodump/restore mongoexport/import and slashes in collection names

    XMLWordPrintable

    Details

      Description

      Not exists restrictions about slash character in collection names (url documentation https://docs.mongodb.com/manual/reference/limits/), and we manage correcty inside mongodb.
      But if we need to backup/restore, fail and we can lost data.
      db.runCommand(

      {"create":"test/col"}

      )

      Example mongodump:
      mongodump --db test -o test
      Failed: "test.test/col" contains a path separator '/' and can't be dumped to the filesystem

      If we use mongoexport:
      mongoexport --db test --collection 'test/col' -o test
      exported 0 records

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-tools Backlog - Server Tools Team
              Reporter:
              cesarjorgemartinez Cesar
              Votes:
              0 Vote for this issue
              Watchers:
              22 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: