This article describes the steps to perform when you need to copy one customer environment to another (new) environment for the same customer - e.g. copy test to prod or the opposite.
Start by unzipping the content of this zipped folder - it contains all the needed scripts:
Step-by-step guide
- Take backups of everything (both from databases and to databases)
- Take a copy of install_acctual_site table from _dam database (in a seperate fil eg. excel)
- Stop Digibatch, digimonitor, resetpassword and website + app pools
- Delete the logfiles for Digibatch, Digimonitor and website (Optional)
- Copy the 2 .bak files to the database you want to overwrite.
- Restore the databases
- Create schematics on both databases (1a_CreateSchemas.sql)
- Create/connect users to schematics with the correct roles (1b_Addusers.sql)
- Copy over schematics rights using script: 1c_MoveSchmeaObjects.sql
- Change the owner of the schematics admin_dmm4standard_dam + admin_dmm4standard_dam + UserMgmt (1d_ChangeSchemas.sql)
- Delete old schematics admin_OLDNAME_dam and admin_OLDNAME_dam_jobs on both databases
- Null the completed date for search proxy scripts (1e_ResetSearches.sql)
- Delete everything from service broker (2a_DROPSB.sql) (Check that everything has been removed sometimes a few autogenerated need to be cleared manually)
- Delete the old users from both databases.
- Login as admin_NAME_dam user (password = username)
- Run scripts for SB (2b_RebuildServiceBroker.sql + 2c_ServiceBrokerItemLastChanged.sql)
- Run the first script entry from search_proxy_scripts to create the search service broker (You can get it, by rightclicking the table and select edit top 200 and select all from the script collum - the field will look empty but is not, there is a script in it)
- Logon as your Server admin
- Run the script 2d_EnableServiceBroker.sql
- Run the updateDZConfig script
- Run the updateinstallAcctuallsite script
- Edit the stored procedures you get from running the script: 5_GetSPs.sql replace the old datbasename (NAME_dam_Jobs) with the new (NAME_dam_Jobs)
- a) Reconfigure web.config files update user passwords
b) Start the Digizuite website and check you can login - Go to System tools - Workflows - DigiFileWatcher and edit "Standard import" update the "Absolute path to monitor" to \\SERVER\dmm\Workarea\Location
- Go to System tools - Workflows - IngestImporter_XML2metadata and edit "Standard import" update the "Ingest from this path" to \\SERVER\dmm\Workarea\Location
- Repopulate the searches by running https://URL/apiproxy/JobService.js?accesskey=xxx&method=PopulateAllSearches - replace xxx with a valid accesskey from the script 5_GetAccessGUID.sql
- Start DigiMonitor (Reconfigure config files first -update user passwords)
- Configure Digibatch and re-enroll the jobengines.
- Start Digibatch
- Check the jobs created by the "Repopulate the searches" are being processed.
- When the jobs has completed: Test