ALCS-2471: Create script to sync and obfuscate PROD data#2231
Merged
dylanrogowsky-oxd merged 1 commit intodevelopfrom Mar 21, 2025
Merged
ALCS-2471: Create script to sync and obfuscate PROD data#2231dylanrogowsky-oxd merged 1 commit intodevelopfrom
dylanrogowsky-oxd merged 1 commit intodevelopfrom
Conversation
65b312a to
69b4b37
Compare
|
| PORT_FORWARD_PID=$! | ||
|
|
||
| # Give port forwarding a moment to establish | ||
| sleep 6 |
Contributor
Author
There was a problem hiding this comment.
This was changed from 2 to 6
| PORT_FORWARD_PID=$! | ||
|
|
||
| # Give port forwarding a moment to establish | ||
| sleep 6 |
Contributor
Author
There was a problem hiding this comment.
This was changed from 2 to 6
Comment on lines
+335
to
+342
| # Drop ALCS and OATS schemas | ||
| echo "Dropping ALCS and OATS schemas..." | ||
| "$PG_TOOLS_PATH/psql" \ | ||
| -h localhost \ | ||
| -p $PORT \ | ||
| -U postgres \ | ||
| -d app \ | ||
| -c "DROP SCHEMA IF EXISTS alcs CASCADE; DROP SCHEMA IF EXISTS oats CASCADE;" |
Contributor
Author
There was a problem hiding this comment.
This was added due to constraint issues during pg_restore
Contributor
Author
|
@trslater - I made a 3 small changes after running it last night |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



A bash script, using the steps in Confluence to automate the dump, obfuscation using a new local database, and restore to DEV or TEST.