Skip to content

ricristian/DigitalOcean-S3-K8S-MYSQL-CronJob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎉 Digital Ocean S3/Object Storage Mysql Backup ( kubernets cronjob, local script, local docker container )

GitHub Release Date: GitHub release (latest by date) Github issues GitHub open pull requests GitHub closed pull requests

Backup mysql into s3/space from DigitalOcean

How to

Deploy on k8s

Update namespace: mysql with your namespace

kubectl apply -f cronjob.yml

Run locally using docker

docker run --name mysql-backup-s3 --env-file ./env ghcr.io/ricristian/digitalocean-s3-k8s-mysql-cronjob:v1.0

TO DO:

  • Replace static data retention ( 7 days ) to a dynamic variable
  • Improve documentation
  • Add environment variables to cronjob.yml (k8s)
  • Add more running examples for different os & distributions ( mac os, linux)
  • Test into a live k8s cluster & mysql stateful set