[DOCS-12580] Add an example to mongorestore to a different database name Created: 28/Mar/19  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server, tools
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Improvement Priority: Major - P3
Reporter: Nic Cottrell Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 Description   

Description

A common workflow is to `mongodump` a production database, and then restore it to another logical database name (like 'db_dev') each morning to test on almost live data.

I suggest we add a simple example for restoring to a different database name, perhaps restructuring the current "Change Collections’ Namespaces during Restore" section.

It could be a new subsection "Change Database name during Restore" with an example like:

 mongorestore --nsInclude 'db_prd.*' --nsFrom 'db_prd.$coll$' --nsTo 'db_dev.$coll$'

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 08:05:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.