Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preproduction Database Restore #2485

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Preproduction Database Restore #2485

merged 1 commit into from
Nov 5, 2024

Conversation

neillturner
Copy link
Contributor

Context

support restore and restore to point in time in preproduction for DR testing

Changes proposed in this pull request

add preprod to database_restore and database_ptr workflow

Guidance to review

Restore Point in Time

gh workflow run "Restore database from point in time to new database server" -r database-restore -f environment=preproduction -f restore-time=2024-10-29T06:00:00

see https://github.com/DFE-Digital/apply-for-qualified-teacher-status/actions/runs/11666600131

Restore from backup

gh workflow run "Restore database from Azure storage" -r database-restore -f environment=preproduction -f backup-file=afqts_pp_adhoc_2024-11-01.sql.gz

see https://github.com/DFE-Digital/apply-for-qualified-teacher-status/actions/runs/11666736478

Link to Trello card

AFQTS: database restore and ptr to preprod

Checklist

  • Attach to Trello card
  • Rebased main
  • Cleaned commit history
  • Tested by running locally

@neillturner neillturner requested a review from a team as a code owner November 4, 2024 15:23
@neillturner neillturner changed the title reproduction database restore Preproduction Database Restore Nov 4, 2024
@neillturner
Copy link
Contributor Author

@neillturner neillturner merged commit a88ac18 into main Nov 5, 2024
14 checks passed
@neillturner neillturner deleted the database-restore branch November 5, 2024 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants