{"id":29005306,"url":"https://github.com/vst/gidek","last_synced_at":"2026-01-12T15:32:34.512Z","repository":{"id":213191903,"uuid":"733272035","full_name":"vst/gidek","owner":"vst","description":"Backup Git(Hub) Repositories","archived":false,"fork":false,"pushed_at":"2026-01-10T12:57:31.000Z","size":108,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-11T03:59:47.975Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://thenegation.com/posts/backup-github-repos/","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vst.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-12-19T00:32:07.000Z","updated_at":"2026-01-10T12:57:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"11742677-9676-448d-b0b8-f3467439b2fe","html_url":"https://github.com/vst/gidek","commit_stats":null,"previous_names":["vst/gidek"],"tags_count":7,"template":false,"template_full_name":"vst/haskell-template-hebele","purl":"pkg:github/vst/gidek","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vst%2Fgidek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vst%2Fgidek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vst%2Fgidek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vst%2Fgidek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vst","download_url":"https://codeload.github.com/vst/gidek/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vst%2Fgidek/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"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":"2025-06-25T11:05:47.155Z","updated_at":"2026-01-12T15:32:34.506Z","avatar_url":"https://github.com/vst.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gidek - Backup Git(Hub) Repositories\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/vst/gidek/releases/latest\"\u003e\u003cimg alt=\"GitHub Release\" src=\"https://img.shields.io/github/v/release/vst/gidek?style=for-the-badge\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/vst/gidek/actions/workflows/release.yaml\"\u003e\u003cimg alt=\"GitHub Actions Workflow Status\" src=\"https://img.shields.io/github/actions/workflow/status/vst/gidek/release.yaml?style=for-the-badge\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003e **TODO** Provide minimum viable documentation.\n\n`gidek` lets you backup Git repositories hosted (for now only) on [GitHub].\n\nThe idea is that you specify a list of GitHub repositories to backup and `gidek`\nkeeps cloning them everytime it is invoked. The list of GitHub repositories of\ninterest can be specified as:\n\n1. Specific GitHub repositories by their `[owner]/[repository-name]` handle, or\n2. All GitHub repositories which belong to specific GitHub users or\n   organizations, ie. owners.\n\n## Quickstart\n\nA NixOS module is provided for both classic and flake-based Nix setups. Add\nfollowing to your configuration and edit it as per your needs:\n\n```nix\n  imports = [\n    \"${sources.gidek}/nix/modules/nixos\"\n  ];\n\n  services.gidek = {\n    enable = true;\n    user = \"vst\";\n    schedule = \"Sat *-*-* 00:00:01\";\n  };\n\n  programs.gidek = {\n    enable = true;\n    config = {\n      store = \"/data/gidek\";\n      token_file = config.sops.secrets.github_token.path;\n      repos = [\n        { type = \"single\"; name = \"vst/gidek\"; }\n        # { type = \"user\"; name = \"vst\"; }\n        # { type = \"organization\"; name = \"fourmolu\"; }\n      ];\n  };\n```\n\nAlternatively, clone the repository:\n\n```sh\ngit clone git@github.com:vst/gidek.git\ncd gidek\n```\n\nUsing `nix profile`:\n\n```sh\nnix profile install --file default.nix app\n```\n\nUsing `nix-env`\n\n```sh\nnix-env -i -f default.nix -A app\n```\n\nCreate a configuration file:\n\n```sh\ncat \u003c\u003cEOF \u003e config.yaml\nstore: /tmp/gidek/store\ntoken: $(gh auth token)\ntoken_file: /var/run/secrets/github_token\nrepos:\n  - type: single\n    name: vst/gidek\n  - type: user\n    name: vst\n  - type: organization\n    name: fourmolu\nEOF\n```\n\nPlan backups:\n\n```sh\ngidek --config config.yaml plan\n```\n\nRun backups:\n\n```sh\ngidek --config config.yaml backup\n```\n\n## Development\n\nProvision `direnv`:\n\n```sh\ndirenv allow\n```\n\nCheck, lint, test and build everything with this:\n\n```sh\ncabal verify [-c | --clean]\n```\n\n\u003c!-- REFERENCES --\u003e\n\n[GitHub]: https://github.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvst%2Fgidek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvst%2Fgidek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvst%2Fgidek/lists"}