Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page explains how to sync test server database with latest production data copy. Having the data in sync might be needed for reasons like:

...

  1. Take a full data dump from production.(including triggers, views, functions etc.)
    • NOTE: If required as per center requirements, production database can be de-identified first before syncing with test server. 
  2. Bring down test server Tomcat
  3. Take a backup of current test server database before sync
  4. Drop the test server database and create new database with same name so that configurations need not be changed
  5. Import the production data dump into this new database
  6. Bring up the Tomcat server
  7. Once the OpenSpecimen server is up, update settings like below to reflect it is test server
    1. Deployment Environment
    2. Application URL
    3. Data Directory: If the path is different compared to production
    4. Optional: To disable notifications or remove email settings
    5. Optional: Other user authentication settings like 'Inactive Account' can be set to 0 if you do not want users to be locked on test server
    6. Other settings which point to production DB path like System Workflow JSON.


Steps to sync the data directory from production:

...

Info

If the data directory sync is not done, you have to delete all jobs sub-directories under bulk-import/ directory. This is to ensure that bulk import works fine and the report downloaded does not refer to obsolete files.