Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6390

mongooplog arguments are unclearly documented, some irrelevant?

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.1.2
    • Component/s: Tools
    • ALL

      $ mongooplog --help
      Pull and replay a remote MongoDB oplog.
      
      options:
        --help                          produce help message
        -v [ --verbose ]                be more verbose (include multiple times for 
                                        more verbosity e.g. -vvvvv)
        --version                       print the program's version and exit
        -h [ --host ] arg               mongo host to connect to ( <set name>/s1,s2 
                                        for sets)
        --port arg                      server port. Can also use --host 
                                        hostname:port
        --ipv6                          enable IPv6 support (disabled by default)
        -u [ --username ] arg           username
        -p [ --password ] arg           password
        --dbpath arg                    directly access mongod database files in the 
                                        given path, instead of connecting to a mongod
                                          server - needs to lock the data directory, 
                                        so cannot be used if a mongod is currently 
                                        accessing the same path
        --directoryperdb                if dbpath specified, each db is in a separate
                                        directory
        --journal                       enable journaling
        -d [ --db ] arg                 database to use
        -c [ --collection ] arg         collection to use (some commands)
        -f [ --fields ] arg             comma separated list of field names e.g. -f 
                                        name,age
        --fieldFile arg                 file with fields names - 1 per line
        -s [ --seconds ] arg            seconds to go back default:86400
        --from arg                      host to pull from
        --oplogns arg (=local.oplog.rs) ns to pull from
      

      host and port should specify they're the target for applyOps, distinct from the source which is --from.

      are username and password for source or target? what if they differ on source and target?

      i think journal, db, collection, fields, and fieldFile are irrelevant to mongooplog. if not, clarify in --help output.

            Assignee:
            ian@mongodb.com Ian Whalen (Inactive)
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: