Wiki source code of MI Restore to Staging From Live
Version 1.27 by Rudi Marais on 2024/05/14 08:25
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.2 | 1 | |
| 2 | |||
| |
1.7 | 3 | 1. Stop all services including web site for staging on VM |
| 4 | |||
| |
1.2 | 5 | 1. Backup Old DB to storage account |
| |
1.18 | 6 | 11. disable encryption if enabled, delete encryption key for DB |
| |
1.15 | 7 | 111. TODO move to self managed keys |
| 8 | 11. enable compression! | ||
| |
1.2 | 9 | 11. container for client |
| 10 | |||
| 11 | 1. Drop Old DB | ||
| 12 | 11. drop existing connections | ||
| 13 | |||
| 14 | 1. Restore DB from Live from last PITR | ||
| 15 | |||
| |
1.22 | 16 | 1. Give yourself access to the admin group via the powershell script |
| 17 | |||
| |
1.19 | 18 | 1. Wait for group policy SQL JOB [roughly 5-10 minutes] to create groups |
| 19 | |||
| |
1.18 | 20 | 1. Run post restore access script [[SKL_sqlmi_accesss.sql - Repos (azure.com)>>url:https://dev.azure.com/ebsphere/ebsphere/_git/dbs?version=GBmaster&path=/src/setup_scripts/SKL_sqlmi_accesss.sql]] |
| |
1.7 | 21 | 11. [TODO] source passwords from vault |
| |
1.4 | 22 | 11. set clearLogins = 1 |
| |
1.8 | 23 | 11. TODO |
| |
1.2 | 24 | |
| |
1.23 | 25 | 1. TODO - post restore script db settings etc |
| |
1.19 | 26 | |
| |
1.2 | 27 | 1. Run dba.dbo.sp_scan_db script for '%[_]Live[_]%' |
| 28 | 11. correct all config found and repoint to Staging | ||
| 29 | 11. TODO automate | ||
| |
1.3 | 30 | |
| 31 | 1. Start all services | ||
| 32 | 11. check logs to make sure no connections issues | ||
| |
1.2 | 33 | |
| 34 |