Last modified by Phillip Swanepoel on 2026/06/09 12:46

Hide last authors
Rudi Marais 1.2 1
2
Phillip Swanepoel 9.1 3 1. Pull newest scripts from repo using D:/ebsphere/devops/setup-scripts/setup-new.ps1
Rudi Marais 1.7 4 1. Stop all services including web site for staging on VM
5
Phillip Swanepoel 7.1 6 1. Drop Old DB on Azure portal
Rudi Marais 1.2 7 11. drop existing connections
8
Phillip Swanepoel 8.1 9 1. Restore DB from Live from last PITR or latest Full backup if DB age is not important
Nikhil Singh 10.1 10 - [[image:image-20250411144502-1.png||height="150" width="284"]]
Phillip Swanepoel 7.1 11 1. Give yourself access to the admin group via the powershell script - if needed
Rudi Marais 1.22 12
Rudi Marais 1.19 13 1. Wait for group policy SQL JOB [roughly 5-10 minutes] to create groups
14
Rudi Marais 1.18 15 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]]
Phillip Swanepoel 9.2 16 11. This has to be run using SQLCMD mode on the script
Rudi Marais 1.7 17 11. [TODO] source passwords from vault
Phillip Swanepoel 1.28 18 11. set clearLogins = 2
Rudi Marais 1.8 19 11. TODO
Rudi Marais 1.2 20
Rudi Marais 1.23 21 1. TODO - post restore script db settings etc
Rudi Marais 3.1 22 11. recreate tblDocuments synonym
Rudi Marais 4.1 23 11. tblAudit if applicable
Rudi Marais 1.19 24
Phillip Swanepoel 13.1 25 1. Run  dba.dbo.sp_scan_db script for '%[_]Live[_]%' (exec dba.[dbo].[sp_scan_db] @includestr = '%DBC[_]Live%', @databasename = 'DBC_Live_Everest')
Rudi Marais 1.2 26 11. correct all config found and repoint to Staging
Phillip Swanepoel 6.1 27 11. TODO automate (some of the config correcting statements can be generated using [dba].[devops].[sp_change_db_env_post_restore])
Phillip Swanepoel 11.1 28 11. exec dba.[devops].[sp_change_db_env_post_restore] @dbname = 'ENV_Staging_Everest', @ClientCode ='ENV', @Sourceenv = 'Live', @TargetEnv = 'Staging',
29 @domainRev = 'com.site', @domain = 'site.com',@svcUserPass = 'xxx.xxx.xxx.xxx#xx'
Nikhil Singh 14.1 30 11. After executing the output of the dba.devops.sp_change_db_env_post_restore rerun this SP and make sure there is no objects that hasn't changed
Phillip Swanepoel 15.1 31 11. Use [[doc_central.sql - Repos>>url:https://dev.azure.com/ebsphere/ebsphere/_git/devops?version=GBmaster&path=%2Fsetup-scripts%2Fdoc_central.sql]] to update staging documents when restoring from live.
Rudi Marais 1.3 32 1. Start all services
33 11. check logs to make sure no connections issues
Nikhil Singh 14.1 34 1. Log into the new DB with Everest and do a happyline test -> search for a member -> view member details -> upload a document -> download a document
Rudi Marais 1.2 35
36

Need help?

If you need help with XWiki you can contact: