{"id":15874156,"url":"https://github.com/garutilorenzo/k8s-db-backup","last_synced_at":"2026-04-11T09:32:37.130Z","repository":{"id":154321641,"uuid":"575427273","full_name":"garutilorenzo/k8s-db-backup","owner":"garutilorenzo","description":"Containerized backup agent for MySQL with AWS and OCI S3 bucket support","archived":false,"fork":false,"pushed_at":"2022-12-12T11:48:09.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T14:47:26.907Z","etag":null,"topics":["aws","backup","bucket","container","database","docker","kubernetes","mysql","mysql-backup","oci","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/garutilorenzo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-07T13:44:44.000Z","updated_at":"2022-12-07T13:48:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"13784e56-bee4-42a2-9b26-31b23bdd4a68","html_url":"https://github.com/garutilorenzo/k8s-db-backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garutilorenzo%2Fk8s-db-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garutilorenzo%2Fk8s-db-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garutilorenzo%2Fk8s-db-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garutilorenzo%2Fk8s-db-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garutilorenzo","download_url":"https://codeload.github.com/garutilorenzo/k8s-db-backup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246724801,"owners_count":20823543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","backup","bucket","container","database","docker","kubernetes","mysql","mysql-backup","oci","python"],"created_at":"2024-10-06T01:21:09.372Z","updated_at":"2026-04-11T09:32:32.091Z","avatar_url":"https://github.com/garutilorenzo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Wordpress CI](https://github.com/garutilorenzo/k8s-db-backup/actions/workflows/ci.yml/badge.svg)](https://github.com/garutilorenzo/k8s-db-backup/actions/workflows/ci.yml)\n[![GitHub issues](https://img.shields.io/github/issues/garutilorenzo/k8s-db-backup)](https://github.com/garutilorenzo/k8s-db-backup/issues)\n![GitHub](https://img.shields.io/github/license/garutilorenzo/k8s-db-backup)\n[![GitHub forks](https://img.shields.io/github/forks/garutilorenzo/k8s-db-backup)](https://github.com/garutilorenzo/k8s-db-backup/network)\n[![GitHub stars](https://img.shields.io/github/stars/garutilorenzo/k8s-db-backup)](https://github.com/garutilorenzo/k8s-db-backup/stargazers)\n\n# K8s db backup\n\nContainerized backup agent for MySQL with AWS and OCI S3 bucket support.\nThis container can be used to automatically create a logical backup of databases \nand store them on S3 object storage compatible provider.\nSupported providers are: aws and oci\n\n## Requirements\n\nThe only requirements is to have enough free space on your kubernetes worker/docker swarm node/docker node to store the logical backup\nbefore it is transferred to the object storage.\n\n## Supported environment variables\n\n| Var   | Required | Desc |\n| ------- | ------- | ----------- |\n| `S3_PROVIDER`       | `always`       | S3 compatible provider. Supported providers: aws, oci  |\n| `AWS_SECRET_KEY`       | `aws`       | aws secret key  |\n| `AWS_ACCESS_KEY`       | `aws`       | aws access key  |\n| `AWS_REGION`       | `aws`       | aws region  |\n| `AWS_BUCKET_NAME`       | `aws`       | aws bucket name  |\n| `OCI_SECRET_KEY`       | `oci`       | oci secret key  |\n| `OCI_ACCESS_KEY`       | `oci`       | oci access key  |\n| `OCI_REGION`       | `oci`       | oci region  |\n| `OCI_BUCKET_NAME`       | `oci`       | oci bucket name  |\n| `OCI_NAMESPACE`       | `oci`       | oci namespace. Follow Understanding Object Storage Namespaces on [OCI provider setup](#oci-provider-setup)  |\n| `BACKUP_PATH_PREFIX`       | `no`       | Local and remote prefix where the backups will be stored. Default: k8s-db-backup  |\n| `BACKUP_STRATEGY`       | `no`       | Define the backup strategy: single dump or split backup by tables. Default: SINGLE_FILE_DUMP. Supported strategies are SINGLE_FILE_DUMP and SPLIT_BY_TABLE |\n\n**Note** on required column:\n\n* `always` variable always required\n* `aws` or `oci` specific provider variable\n* `no` optional/not required variable\n\n### AWS provider setup\n\nTo get the AWS secret and access key follow the links below:\n* [Accessing AWS using your AWS credentials](https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html)\n* [Managing access keys for IAM users](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html)\n\n### OCI provider setup\n\nTo get the ICI secret and access key follow the links below:\n* [Managing User Credentials](https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingcredentials.htm#create-secret-key)\n* [Understanding Object Storage Namespaces](https://docs.oracle.com/en-us/iaas/Content/Object/Tasks/understandingnamespaces.htm)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarutilorenzo%2Fk8s-db-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarutilorenzo%2Fk8s-db-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarutilorenzo%2Fk8s-db-backup/lists"}