Restore-DbaDatabase - Can't restore database if unused files exists in destination #9183
Unanswered
dev-ops-geek
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
Files are not attached to SqlServer, not used.
I'd like to replace it during restore (not delete manually before).
During restore:
Restore-DbaDatabase -SqlInstance SQL01 -DatabaseName mydb -Path \\share\mydb.bak -DestinationDataDirectory D:\Data -DestinationLogDirectory D:\Data -WithReplace
WARNING are reported and restore not starting.
How to force Restore-DbaDatabase command to override
?
Thank you in advanced.
Beta Was this translation helpful? Give feedback.
All reactions