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

mongodump/restore mongoexport/import and slashes in collection names

    • Server Tools 15 (6/3/16), Server Tools 16 (6/24/16), Server Tools 17 (7/15/16)
    • 1
    • v4.0

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            cesarjorgemartinez Cesar
            Votes:
            0 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved: