17 lines
698 B
PowerShell
17 lines
698 B
PowerShell
# 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
|
|
|