Created
November 25, 2017 23:00
-
-
Save Stuart-Moore/5bef59595e931507e2f4ce64a1fa1307 to your computer and use it in GitHub Desktop.
Rebasing Striped backups
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$BackupHistory = Get-DbaBackupHistory -SqlInstance localhost\sqlexpress2016 -Database RestoreTimeStripe | |
$BackupHistory | ForEach {$_.FullName = $_.FullName | | |
ForEach { | |
($_ -replace 'c:\\dbatools\\RestoreTimeStripe\\stripe1','\\new\stripeA') -replace 'c:\\dbatools\\RestoreTimeStripe\\stripe2', '\\old\StripeB' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment