Python script for MySQL DB backup
I'm trying to create a Python script to make a backups for MySQL DB. (I have a Django-REST app with MySQL DB wrapped in Docker compose) The script should make backuos and send in to Disk API. It accept parameters:
- db name
- user name
- user password
- API parameters for working with Disk API
There sholud be a simple function in the script. I think I'll just add it to cron (linux task scheduler) and it will run once a week, for example. The function have to create a DB backup and send it via the API to yandex disk. So, these are my thoughts, but I never made smth like this. I will be very grateful for links or examples of such a script.