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

Create a backup process for database submissions #33

Open
pkoepke opened this issue Jun 25, 2015 · 1 comment
Open

Create a backup process for database submissions #33

pkoepke opened this issue Jun 25, 2015 · 1 comment

Comments

@pkoepke
Copy link
Contributor

pkoepke commented Jun 25, 2015

It would be a shame if something went wrong and we lost the record of applications. We should have a way to back up the DB.

I would consider using pg_dump to get the entire database (daily? weekly?), compress the database dump (it's text so it'll compress well), and store it in S3. We can keep all of the DB dumps on S3 with their dates in the file name so we have regular snapshots - that way if something went wrong several weeks ago and we caught it later, we can revert to the last good state.

@skorasaurus skorasaurus changed the title Create a backup process for database Create a backup process for database submissions Apr 7, 2018
@saxenanurag
Copy link
Member

You could create a cron job with the pg dump command and copy the contents of the output to s3.
You can run this cron job at what ever schedule you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants