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

mongorestore ignores db directories in dump that are symbolic links to other directories

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None

      If one of the directories in the dump is a symbolic link to another directory (outside the dump) containing bson files, the directory is ignored, and nothing within it is restored. The legacy version follows the symlink and restores the data (using the name of the symbolic link, not the directory it links to, as the db name).

      I do see a log message

      don't know what to do with file "dump_with_soft_link/dbTwo", skipping...
      

      I tried the same with a collection bson file as a soft link, and the file was restored correctly with the rewrite.

            Assignee:
            kyle.erf Kyle Erf
            Reporter:
            sam.helman@10gen.com sam.helman@10gen.com
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: