init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
17
Tools/SqlScripts/test_restore.ps1
Normal file
17
Tools/SqlScripts/test_restore.ps1
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Install-Module dbatools
|
||||
# Import-Module dbatools
|
||||
|
||||
$credential = Get-Credential
|
||||
|
||||
Get-DbaBackupInformation -Path \\kakh-kfebkpa004\sqlbackup\strb\KAKH-KFEAAG078 `
|
||||
-SqlInstance 172.20.106.10 `
|
||||
-DatabaseName KRETA_KLIK_13_SIOFOKI `
|
||||
-DirectoryRecurse `
|
||||
-SqlCredential $credential `
|
||||
| `
|
||||
Restore-DbaDatabase -SqlInstance 172.20.106.10 `
|
||||
-DatabaseName KRETA_KLIK_13_SIOFOKI_FarkasM `
|
||||
-SqlCredential $credential `
|
||||
-RestoreTime "2020-12-15 14:00:00"
|
||||
#-OutputScriptOnly
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue