{"id":48908573,"url":"https://github.com/simenandre/backup-repos","last_synced_at":"2026-04-16T22:03:44.588Z","repository":{"id":349532247,"uuid":"1188244867","full_name":"simenandre/backup-repos","owner":"simenandre","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-21T21:19:03.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-06T12:31:02.472Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simenandre.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-21T20:14:09.000Z","updated_at":"2026-03-21T21:23:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/simenandre/backup-repos","commit_stats":null,"previous_names":["simenandre/backup-repos"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/simenandre/backup-repos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fbackup-repos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fbackup-repos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fbackup-repos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fbackup-repos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simenandre","download_url":"https://codeload.github.com/simenandre/backup-repos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fbackup-repos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31905895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"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-04-16T22:03:22.222Z","updated_at":"2026-04-16T22:03:44.563Z","avatar_url":"https://github.com/simenandre.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# backup-repos\n\nBack up all GitHub repositories for a user or organization to a Hetzner storage box.\n\nClones repos as bare git repositories, then rsyncs them over SSH. Supports incremental backups (fetches only new changes on subsequent runs).\n\n## Configuration\n\nAll configuration is via environment variables:\n\n| Variable | Required | Default | Description |\n|----------|----------|---------|-------------|\n| `GITHUB_TOKEN` | Yes | — | GitHub PAT with repo read scope |\n| `GITHUB_OWNER` | Yes | — | GitHub user or org name |\n| `GITHUB_OWNER_TYPE` | No | `org` | `user` or `org` |\n| `STORAGE_BOX_HOST` | Yes | — | e.g. `uXXXXXX.your-storagebox.de` |\n| `STORAGE_BOX_USER` | Yes | — | SSH username |\n| `STORAGE_BOX_PORT` | No | `23` | SSH port (Hetzner default is 23) |\n| `STORAGE_BOX_PATH` | No | `./backups` | Remote base path |\n| `WORK_DIR` | No | `/tmp/backup-repos` | Local staging directory |\n\n## Usage\n\n### Run locally\n\n```sh\nexport GITHUB_TOKEN=ghp_...\nexport GITHUB_OWNER=myorg\nexport STORAGE_BOX_HOST=uXXXXXX.your-storagebox.de\nexport STORAGE_BOX_USER=uXXXXXX\n\ngo run ./cmd/backup-repos\n```\n\n### GitHub Actions\n\nThe included workflow (`.github/workflows/backup.yml`) runs daily at 03:00 UTC. Configure these secrets in your repository settings:\n\n- `BACKUP_GITHUB_TOKEN` — GitHub PAT (not the built-in `GITHUB_TOKEN`)\n- `GITHUB_OWNER`\n- `GITHUB_OWNER_TYPE`\n- `STORAGE_BOX_HOST`\n- `STORAGE_BOX_USER`\n- `STORAGE_BOX_SSH_KEY` — Private SSH key for the storage box\n- `STORAGE_BOX_PATH`\n\nYou can also trigger the workflow manually via the Actions tab.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimenandre%2Fbackup-repos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimenandre%2Fbackup-repos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimenandre%2Fbackup-repos/lists"}