Skip to content

kubernetes-mysql-backup is a Docker Image based on Alpine Linux that automatically performs backups of MySQL databases, before uploading them to Amazon S3. It is designed to be run as a Cronjob in Kubernetes for scheduled database backups. It also features Slack integration.

License

Notifications You must be signed in to change notification settings

thklein-io/k8s-backup-mysql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubernetes-backup-mysql

Overview

  • Backup: Backup MySQL databases to S3
  • Notify: Notify about the status of the backup, e.g. via Webhook (Slack, etc.) or Telegram
  • Healthcheck: Ping about the status of the backup

Object Storage IAM Policy

Here's an example IAM policy that would work for the backup job.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "s3:ListBucket",
            "Resource": "arn:aws:s3:::<BUCKET_NAME>"
        },
        {
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": [
                "s3:PutObject"
            ],
            "Resource": "arn:aws:s3:::<BUCKET_NAME>/*"
        }
    ]
}

About

kubernetes-mysql-backup is a Docker Image based on Alpine Linux that automatically performs backups of MySQL databases, before uploading them to Amazon S3. It is designed to be run as a Cronjob in Kubernetes for scheduled database backups. It also features Slack integration.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 93.3%
  • Dockerfile 6.7%