Copy-DbaDatabase -Alldatabases #8798
Unanswered
BankaiNoJutsu
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Thanks for this wonderful tool first of all!
I was wondering if there is a way to copy all databases, but only the ones that are currently online?
Is it possible to specify alldatabases together with input-object containing the result of get-database -status normal?
Let's say I have a result like $OnlineDBS = Get-DbaDatabase -Status Normal
Can I use it like:
Copy-DbaDatabase -Source source -Destination destination -Database $OnlineDBS -IncludeSupportDbs -DetachAttach -Verbose
Or do I need to use -InputObject?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions