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

Add database management API calls and update crons #1301

Open
wants to merge 5 commits into
base: development
Choose a base branch
from

Conversation

howard-e
Copy link
Contributor

@howard-e howard-e commented Jan 8, 2025

Partially address #759 in making it easier to get a database dump from production and restoring it in staging or sandbox.

This PR adds API functions:

  • Dumping postgres database
  • Restoring postgres database
  • Cleaning up the database dumps directory so it doesn't grow too large (defaulted to max of 28 days)

This PR adds the following cron jobs:

  • Dumping postgres database every day at 00:00
  • Cleaning up the dumps directory if necessary every day at 00:05

@howard-e howard-e changed the title Add new database management API calls and update crons Add database management API calls and update crons Jan 8, 2025
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.

1 participant