Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Automated DB Backup script #6

Open
robmorgan opened this issue Sep 5, 2018 · 4 comments
Open

Automated DB Backup script #6

robmorgan opened this issue Sep 5, 2018 · 4 comments

Comments

@robmorgan
Copy link
Member

We need an automated DB backup script. It should run either via Lambda or on an available ECS cluster.

The script should invoke mysqldump, but prefer the slave database so the database is not locked exclusively.

@yuliyantsvetkov
Copy link
Contributor

Hi @robmorgan

Is Python working for you as runtime engine for the Lambda function which will backup databases from the RDS slave ?

We want them then stored to S3, right ?

Thanks

@robmorgan
Copy link
Member Author

@yuliyantsvetkov yeah that's correct. I'd prefer a simple Bash script if possible, but that's going to be hard on Lambda. For some other clients I've been using CloudWatch triggered tasks to execute one-off containers on an ECS cluster. Thinking, now it might be better to move them to Lambda, what are your thoughts?

@yuliyantsvetkov
Copy link
Contributor

Hey @robmorgan
I prefer Lambda as its cheaper than creating a temp. container for backup, we can manage the deployment via Terraform, and the Lambda itself, and with Python we can extend the backup with whatever we want functionalities.

@robmorgan
Copy link
Member Author

@yuliyantsvetkov okay let's run with that then.

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

No branches or pull requests

2 participants