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

Snapshot of database #1099

Open
nikyraja opened this issue Nov 8, 2024 · 2 comments
Open

Snapshot of database #1099

nikyraja opened this issue Nov 8, 2024 · 2 comments

Comments

@nikyraja
Copy link
Contributor

nikyraja commented Nov 8, 2024

Please can we have a snapshot of the database that the analyst can connect to in STATA to use for the annual analyses?

Could this be taken on 15 January 2025 at 12:00am?

@mbarton
Copy link
Member

mbarton commented Nov 8, 2024

To confirm how we'd do this, we would clone the e12_live database entirely into a new database which can then be accessed.

https://stackoverflow.com/questions/876522/creating-a-copy-of-a-database-in-postgresql

Rather than disconnect clients as that Stack Overflow answer suggests we can simply spin down the E12 app (set replicas to 0), take the snapshot and then spin it back up again.

@nikyraja this will be a manual process, is it OK to do it early the day after or late the day before? To avoid staying up until midnight :)

@nikyraja
Copy link
Contributor Author

Yes of course! Could we aim to do this at 9/10am on 15 January 2025 please?

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

No branches or pull requests

2 participants