{"id":15293488,"url":"https://github.com/obfusk/ghbak","last_synced_at":"2026-02-26T02:02:32.107Z","repository":{"id":57434190,"uuid":"273794621","full_name":"obfusk/ghbak","owner":"obfusk","description":"ghbak - github backup","archived":false,"fork":false,"pushed_at":"2020-06-24T10:48:45.000Z","size":66,"stargazers_count":3,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-29T20:41:05.368Z","etag":null,"topics":["backup","gist","git","github"],"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/obfusk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.GPLv3","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-20T22:35:51.000Z","updated_at":"2024-11-03T14:28:22.000Z","dependencies_parsed_at":"2022-08-27T22:32:02.609Z","dependency_job_id":null,"html_url":"https://github.com/obfusk/ghbak","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/obfusk/ghbak","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obfusk%2Fghbak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obfusk%2Fghbak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obfusk%2Fghbak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obfusk%2Fghbak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obfusk","download_url":"https://codeload.github.com/obfusk/ghbak/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obfusk%2Fghbak/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267989091,"owners_count":24177020,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["backup","gist","git","github"],"created_at":"2024-09-30T16:48:56.285Z","updated_at":"2026-02-26T02:02:27.078Z","avatar_url":"https://github.com/obfusk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- {{{1 --\u003e\n\n    File        : README.md\n    Maintainer  : Felix C. Stegerman \u003cflx@obfusk.net\u003e\n    Date        : 2020-06-22\n\n    Copyright   : Copyright (C) 2020  Felix C. Stegerman\n    Version     : v0.1.5\n    License     : GPLv3+\n\n\u003c!-- }}}1 --\u003e\n\n[![PyPI Version](https://img.shields.io/pypi/v/ghbak.svg)](https://pypi.python.org/pypi/ghbak)\n[![CI](https://github.com/obfusk/ghbak/workflows/CI/badge.svg)](https://github.com/obfusk/ghbak/actions?query=workflow%3ACI)\n[![GPLv3+](https://img.shields.io/badge/license-GPLv3+-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html)\n\n## Description\n\nghbak - github backup\n\nMirror (or update) github repos (and issues) and/or gists to:\n\n```\n{basedir}/\n  {github_username}/\n    github/\n      {repo_name}.git\n      {repo_name}-issues.json\n      ...\n    gist/\n      {gist_id}.git\n      ...\n```\n\nThe base directory defaults to `./{YYYYMMDD}` (the current date).\n\n## Examples\n\n```bash\n$ export GITHUB_TOKEN=your-github-token\n$ ghbak --repos --gists --ssh --verbose your-github-username\nuser: your-github-username\ntoken $GITHUB_TOKEN\nGET https://api.github.com/users/your-github-username/repos\n...\nGET https://api.github.com/users/your-github-username/gists\n...\ncloning 42 repos...\n==\u003e repo your-github-username/your-repo | description\n$ cd 20200101/your-github-username/github\n$ git clone --mirror -n git@github.com:your-github-username/your-repo.git your-repo.git\n...\ncloning 37 gists...\n==\u003e gist your-github-username | gist-id | description\n$ cd 20200101/your-github-username/gist\n$ git clone --mirror -n git@gist.github.com:gist-id.git gist-id.git\n...\n\n=== summary ===\n\nbacked up repos: 42\nbacked up gists: 37\n```\n\n## Help\n\n```bash\n$ ghbak --help\n```\n\n## Requirements\n\nPython \u003e= 3.5 + click + requests.\n\n## Installing\n\n### Using pip\n\n```bash\n$ pip install ghbak\n```\n\n### Manually\n\nInstall the dependencies (as e.g. debian packages or using `pip`):\n\n```bash\n$ apt install python3-click python3-requests  # debian/ubuntu\n$ pip install click requests                  # pip\n```\n\nThen just put `ghbak` somewhere on your `$PATH` (e.g. `~/bin`).\n\n## License\n\n[![GPLv3+](https://www.gnu.org/graphics/gplv3-127x51.png)](https://www.gnu.org/licenses/gpl-3.0.html)\n\n\u003c!-- vim: set tw=70 sw=2 sts=2 et fdm=marker : --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobfusk%2Fghbak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobfusk%2Fghbak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobfusk%2Fghbak/lists"}