New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New command - Get-DbaDbFileMapping #7578
Conversation
Someone let me know when this is good to merge 👍🏼 |
PS C:\> $filemap = Get-DbaDbFileMapping -SqlInstance sql2016 -Database test | ||
PS C:\> Get-ChildItem \\nas\db\backups\test | Restore-DbaDatabase -SqlInstance sql2019 -Database test -FileMapping $filemap.FileMapping | ||
|
||
Restores test to sql2019 using the file structure built from the existing database on sql2016 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add this example to the restore command as well and then I'm good to merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might replace the example I think the restore command has for manually building the hashtable object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add it in addition to -- I think it's important to show ppl how to build the hashtable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ty for the approval! Will merge once tests finish.
Type of Change