-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Daily cron to do mysql dump #829
Comments
my default oneliner of Note that you want the |
@onewheelskyward can you remind me how often we get an AWS snapshot and at
what time of day with timezone? Then I can easily create a local file
backup in prod daily. Not quite the same resiliency as sending it
off-server but we can reduce the exposure a bit in 2 minutes with this
kinda pattern.
…On Mon, Oct 21, 2024 at 6:47 PM Aaron Minnick ***@***.***> wrote:
@fool <https://github.com/fool> @onewheelskyward
<https://github.com/onewheelskyward>
As a developer / user of the Shift website, I would like automated
daily(?) backups to occur so that if something goes wrong with the
database, my events aren't 'lost'.
Discussing in the meetup, we were talking about the process of restoring
the event data if the database got wiped. It is possible to run a mysql
dump to get the database as a text file, but this is a manual process. It
would be good if we could have a cron running every day to create a dump
file, to minimize data loss if something goes wrong with the database (and
if AWS backups are not available / accessible).
—
Reply to this email directly, view it on GitHub
<#829>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABX5IDEZCJNPF2GYA5AIMLZ4WVCJAVCNFSM6AAAAABQLMGNDGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYDIMBRGQ2TGNY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
after some struggle I have a dump running at 0243 UTC (was convenient to test with, we can/should adjust based on when the backups run) in the root crontab. The output file is (edit: Hmm, still struggling, not actually running yet) |
well, this didn't end up working tonight; will try again next week |
backup runs around midnight, but let's dump at 11p. crontab is funky so will get back to it next week |
I have given up on this on the current config. Will take a shot again after we do "something" about #630 . @onewheelskyward suggests moving to RDS rather than moving to non-docker host storage; I think either will work |
@fool @onewheelskyward
As a developer / user of the Shift website, I would like automated daily(?) backups to occur so that if something goes wrong with the database, my events aren't 'lost'.
Discussing in the meetup, we were talking about the process of restoring the event data if the database got wiped. It is possible to run a mysql dump to get the database as a text file, but this is a manual process. It would be good if we could have a cron running every day to create a dump file, to minimize data loss if something goes wrong with the database (and if AWS backups are not available / accessible).
The text was updated successfully, but these errors were encountered: