{"id":17242293,"url":"https://github.com/haimgel/kan-brewer","last_synced_at":"2026-04-27T21:32:13.326Z","repository":{"id":213157797,"uuid":"733111771","full_name":"haimgel/kan-brewer","owner":"haimgel","description":"Backup scheduler for Kanister application-level data management ","archived":false,"fork":false,"pushed_at":"2026-02-04T01:43:26.000Z","size":170,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-04T13:36:48.809Z","etag":null,"topics":["cloud-native","data-protection","golang","kanister","kubernetes","kubernetes-backup"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haimgel.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-18T15:33:55.000Z","updated_at":"2026-02-04T01:43:30.000Z","dependencies_parsed_at":"2025-12-06T22:05:31.355Z","dependency_job_id":null,"html_url":"https://github.com/haimgel/kan-brewer","commit_stats":{"total_commits":38,"total_committers":1,"mean_commits":38.0,"dds":0.0,"last_synced_commit":"f41e6a894cbf5e36952b2b130d9d9367147a06e0"},"previous_names":["haimgel/kan-brewer"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/haimgel/kan-brewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haimgel%2Fkan-brewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haimgel%2Fkan-brewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haimgel%2Fkan-brewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haimgel%2Fkan-brewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haimgel","download_url":"https://codeload.github.com/haimgel/kan-brewer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haimgel%2Fkan-brewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32356598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cloud-native","data-protection","golang","kanister","kubernetes","kubernetes-backup"],"created_at":"2024-10-15T06:12:51.444Z","updated_at":"2026-04-27T21:32:13.304Z","avatar_url":"https://github.com/haimgel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kan-Brewer\n\nSchedule periodic backups in Kubernetes using [Kanister](https://kanister.io/) and Kubernetes CronJobs.\n\n## Assumptions\n\nYou have Kanister set up and running, and you have a set of blueprints that you want to run periodically. Blueprints\napply to either whole namespace (e.g. `kanister-mysql-blueprint`) or to a specific PVC (e.g. `kanister-pvc-blueprint`).\n\n## How to \n\n### Annotate the Namespaces and PVCs\n\nAnnotate the namespaces and PVCs that you want to back up with the `kan-brewer.haim.dev/kanister-blueprints` annotation.\nIt should list all the blueprints that you want to use on that namespace or PVC.\n\n```yaml\napiVersion: v1\nkind: Namespace\nmetadata:\n  name: my-namespace\n  annotations:\n    kan-brewer.haim.dev/kanister-blueprints: backup-pbs-postgresql,backup-pbs-mongodb\n```\n\n### Install the Helm chart\n\n```bash\n  helm install --namespace kanister kan-brewer \\\n    oci://ghcr.io/haimgel/helm-charts/kan-brewer --version 0.1.1 \\\n    --set cronJob.schedule=\"45 4 */1 * *\" # Run backups every day at 4:45am\n```\nYou can view all configuration values with:\n```bash\n  helm show values oci://ghcr.io/haimgel/helm-charts/kan-brewer\n```\n\n## What will it do?\n\n### Creates new action sets\n\n`kan-brewer` cron job will create actionsets that reference the blueprints you specified in the annotation, \nand the PVC or Namespace object itself. For example:\n\n```yaml\napiVersion: cr.kanister.io/v1alpha1\nkind: ActionSet\nmetadata:\n  generateName: auto-backup-pbs-mariadb-test-\n  labels:\n    app.kubernetes.io/managed-by: kan-brewer\n  namespace: kanister\nspec:\n  actions:\n  - blueprint: backup-pbs-mariadb\n    name: backup\n    object:\n      kind: Namespace\n      name: test\n```\n### Deletes old action sets\n\n`kan-brewer` will delete old action sets: \n* Those that were created by it (i.e. have the `app.kubernetes.io/managed-by: kan-brewer`),\n* Successful action sets only (i.e. those that have `state: complete`).\n* It will keep 3 latest ones (configurable).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaimgel%2Fkan-brewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaimgel%2Fkan-brewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaimgel%2Fkan-brewer/lists"}