-
Notifications
You must be signed in to change notification settings - Fork 7
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
Remove db backup cronjobs #5418
Conversation
848809b
to
d9dbdc8
Compare
0ba623d
to
299b4b8
Compare
Do we need to first check with CP that we able to carry out point in time restores before merging this pr? The ticket says that AWS in theory allows point-in-time restores but my understanding is that this needs to be configured. I have looked in the CP user guide but this only mentions one overnight backup. |
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Maybe we could schedule a point-in-time recovery, the same as the original DR test?
Quoting CP - "Point-in-time recovery for RDS relies on snapshots, either automated or manual. You can do point-in-time recovery to any point in time within the backup retention period; which is (by default) 7 days." So yes, PITR is possible with CP's automated snapshots (although we may require CP support) |
It does look and sound like a combination of an automated daily backup plus point in time recovery (PITR) can allow us to restore an instance of the DB from up to 7 days ago until up to ~5 minutes ago. I have used the cli to confirm LatestRestorableTime is showing as ~5 minutes ago for Apply production RDS instance. Documentation confirms that a daily backup is taken so it sounds like we do not need to take a manual snapshot. But when was the last time a DR scenario was test? |
299b4b8
to
9e0e561
Compare
What
Remove hourly db backup cronjobs
Remove the cron jobs involved in storing and clearing the db backups
Why
Amazon, in theory, allows a point-in-time recovery making the backup files a resource drain that we are unlikely to need
TO-DO
Checklist
Before you ask people to review this PR:
bundle exec rake
git rebase main
.