Skip to content

Test-DbaLastBackup read .BAK from external location #7739

Answered by niphlod
christophorosp asked this question in Ideas
Discussion options

You must be logged in to vote

once you move files around, there's no reason to look at the history to restore the LAST copy, and that's what Test-DbaLastBackup does.
It's not difficult to test restores without Test-DbaLastBackup (in fact, you can read what it does pretty easily):

  • do a Restore-DbaDatabase (RestoredDatabaseNamePrefix, DestinationFilePrefix, VerifyOnly, EnableException are your best friends here )
  • if you do a full restore and if you need a checkdb, issue a Start-DbccCheck
  • if you restored the db and everything goes right, Remove-DbaDatabase

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@christophorosp
Comment options

@niphlod
Comment options

Answer selected by christophorosp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants