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

'mongorestore --archive dumpfile' does not restore unless used as '--archive=dumpfile'

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.4.9
    • Component/s: None
    • Labels:
      None
    • Environment:
      MongoDB 3.4.9

      Unless you use '=' in between the '--archive' option and the file name, it does not work, just hangs there.

      # Hangs
      $ mongorestore --verbose --gzip --archive DATA.tar.gz
      2017-09-17T10:00:49.306-0700	using write concern: w='majority', j=false, fsync=false, wtimeout=0
      ^C2017-09-17T10:00:55.425-0700	signal 'interrupt' received; attempting to shut down
      ^C2017-09-17T10:00:56.676-0700	signal 'interrupt' received; forcefully terminating
      
      # Works
      $ mongorestore --verbose --gzip --archive=DATA.tar.gz
      2017-09-17T10:01:01.852-0700	using write concern: w='majority', j=false, fsync=false, wtimeout=0
      2017-09-17T10:01:01.881-0700	archive ...
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            daniel.coupal@mongodb.com Daniel Coupal
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: