[DOCS-8118] mongorestore namespace renaming Created: 16/Jun/16  Updated: 29/Nov/16  Resolved: 28/Nov/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 3.4.0

Type: Task Priority: Major - P3
Reporter: Lucas Morales Assignee: Allison Reinheimer Moore
Resolution: Done Votes: 0
Labels: docs-3.4
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents TOOLS-1234 mongorestore namespace renaming support Closed
Duplicate
is duplicated by DOCS-7064 Add excludeCollection* options to mon... Closed
Participants:
Days since reply: 7 years, 11 weeks, 2 days ago
Epic Link: 3.4 Tools Related Updates
Story Points: 1

 Description   

Re: TOOLS-1234; for the 3.4.0 release.

Overview of changes:

  • five new command line options:
    • '--nsExclude <ns-pattern>' excludes matching namespaces. Can be used in
      multiplicity.
    • '--nsInclude <ns-pattern>' includes matching namespaces. Can be used in
      multiplicity. Includes are processed before excludes, permitting their
      use in combination.
    • '--nsFrom <ns-pattern>' and '--nsTo <ns-pattern>' correspond to each
      other according to the order in which they are specified. Can be used in
      multiplicity.
    • '--dryRun' stops the program before any restoring begins.
  • namespace pattern: <ns-pattern>
    • permits includes/excludes/renames to refer to any namespace that
      matches a pattern comprised of wild cards, which match their smallest
      valid occurrence.
    • for all includes, all excludes, and simple replacements, asterisks may
      be used as wild cards. Replacements correspond linearly to matches.
      Literal asterisks and backslashes (*, \) must be backslash-escaped.
      • examples:
        • --nsFrom 'prod.*' --nsTo 'staging.*'
        • --nsFrom '*.user*' --nsTo '*.member*'
        • --nsExclude 'tests.*' --nsExclude '*.test*'
        • --nsInclude 'internal.*' --nsExclude '*.top_secret'
    • for more complex replacements, dollar sign-delimited wild cards can
      assign a matching variable in the form of '$var$'. Replacements do not
      need to be linear.
      • examples:
        • --nsFrom '$db$.user$stuff$' --nsTo 'user.$stuff$.$db$'
        • --nsFrom 'test_$stack$.$coll$' --nsTo 'recover.$stack$.$coll$'


 Comments   
Comment by Githook User [ 28/Nov/16 ]

Author:

{u'username': u'schmalliso', u'name': u'Allison Moore', u'email': u'allison.moore@10gen.com'}

Message: DOCS-8118: add new namespace options to mongorestore

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/c2838a8a27cee1da8aa42f52c7f114268da6687d

Generated at Thu Feb 08 07:55:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.