{"id":41586201,"url":"https://github.com/wiremind/kubectl-db-restore","last_synced_at":"2026-01-24T09:06:24.834Z","repository":{"id":299657272,"uuid":"999759737","full_name":"wiremind/kubectl-db-restore","owner":"wiremind","description":"A `kubectl` plugin that allows you to perform restore on various databases.","archived":false,"fork":false,"pushed_at":"2025-06-24T09:23:24.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-24T09:44:16.938Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/wiremind.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,"zenodo":null}},"created_at":"2025-06-10T18:36:54.000Z","updated_at":"2025-06-24T09:22:43.000Z","dependencies_parsed_at":"2025-06-24T09:54:34.460Z","dependency_job_id":null,"html_url":"https://github.com/wiremind/kubectl-db-restore","commit_stats":null,"previous_names":["wiremind/kubectl-restore","wiremind/kubectl-db-restore"],"tags_count":1,"template":false,"template_full_name":"replicatedhq/krew-plugin-template","purl":"pkg:github/wiremind/kubectl-db-restore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremind%2Fkubectl-db-restore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremind%2Fkubectl-db-restore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremind%2Fkubectl-db-restore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremind%2Fkubectl-db-restore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiremind","download_url":"https://codeload.github.com/wiremind/kubectl-db-restore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremind%2Fkubectl-db-restore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28722043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T08:27:05.734Z","status":"ssl_error","status_checked_at":"2026-01-24T08:27:01.197Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-24T09:06:24.722Z","updated_at":"2026-01-24T09:06:24.823Z","avatar_url":"https://github.com/wiremind.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubectl-db-restore\n\n`kubectl-db-restore` is a [Krew](https://krew.sigs.k8s.io/) plugin for restoring databases running in Kubernetes, directly from your terminal using `kubectl`.\n\nThis plugin supports cloud-native database restoration workflows via Kubernetes Jobs. It is designed to be engine-extensible (currently supports ClickHouse and a placeholder for PostgreSQL) and integrates seamlessly into Kubernetes-native workflows.\n\n---\n\n## 🔧 Features\n\n- ⚡ Fast and CLI-native\n- 📦 Restore databases from S3-compatible backups\n- 🔁 Extensible engine system (e.g., ClickHouse, PostgreSQL)\n- 🧪 Dry-run support\n- 🔐 Secret-based credential resolution from Kubernetes Secret\n- 🛠️ Runs restore commands as Kubernetes Jobs\n\n---\n\n## 📦 Installation (via Krew)\n\nEnsure [Krew](https://krew.sigs.k8s.io/docs/user-guide/setup/install/) is installed:\n\n```sh\nkubectl krew install restore\n```\n\nThen invoke the plugin using:\n\n```\nkubectl db-restore\n```\n\n---\n\n🧠 Supported Engines\nEngine\tStatus\n[ClickHouse](doc/clickhouse.md)\t✅ Fully Supported\nPostgreSQL\t⚠️ Not yet implemented\n\n🚀 Example\n\n```\nexport CLICKHOUSE_AWS_S3_ENDPOINT_URL_BACKUP=\"https://backup-name.s3.region-name.amazonaws.com\"\n\nkubectl db-restore database \\\n  --engine clickhouse \\\n  --backup-name daily-backup-2025-06-16 \\\n  --database my_db \\\n  --namespace analytics \\\n  --service-name clickhouse-svc \\\n  --secret-ref CLICKHOUSE_USER=clickhouse-secrets:user \\\n  --secret-ref CLICKHOUSE_PASSWORD=clickhouse-secrets:password \\\n  --secret-ref AWS_ACCESS_KEY_ID=aws-creds:access-key-id \\\n  --secret-ref AWS_SECRET_ACCESS_KEY=aws-creds:secret-access-key \\\n```\n\nThese credentials are used to formulate the restore SQL and run it via clickhouse-client inside a Kubernetes Job.\n\n🧪 Dry Run Mode\n\nYou can preview the generated SQL without actually executing it by passing the --dry-run flag:\n\n```\nkubectl db-restore database \\\n  --dry-run \\\n  --engine clickhouse ...\n```\n\n## 🧩 Contributing\n\nPull requests are welcome! Feel free to open issues or feature requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremind%2Fkubectl-db-restore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiremind%2Fkubectl-db-restore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremind%2Fkubectl-db-restore/lists"}