{"id":16162253,"url":"https://github.com/0xerr0r/gh-backup-docker","last_synced_at":"2026-04-17T05:03:52.906Z","repository":{"id":109368900,"uuid":"301215700","full_name":"0xERR0R/gh-backup-docker","owner":"0xERR0R","description":"GitHub backup as a docker job","archived":false,"fork":false,"pushed_at":"2021-11-16T21:08:02.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-13T08:23:47.207Z","etag":null,"topics":["backup","docker","github"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/0xERR0R.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}},"created_at":"2020-10-04T19:59:14.000Z","updated_at":"2021-11-16T21:08:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"eef68255-c346-4653-bfbf-149cdfc2daf0","html_url":"https://github.com/0xERR0R/gh-backup-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xERR0R%2Fgh-backup-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xERR0R%2Fgh-backup-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xERR0R%2Fgh-backup-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xERR0R%2Fgh-backup-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xERR0R","download_url":"https://codeload.github.com/0xERR0R/gh-backup-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247589834,"owners_count":20963022,"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","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","docker","github"],"created_at":"2024-10-10T02:29:33.345Z","updated_at":"2026-04-17T05:03:52.863Z","avatar_url":"https://github.com/0xERR0R.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Build](https://github.com/0xERR0R/gh-backup-docker/workflows/Build/badge.svg)\n\n# GitHub backup\n\nCreates backup of all relevant GitHub user data.\n\n## Configuration\n\nPlease set following environment variables:\n\n**GH_USER** GitHub username\n\n**GH_ACCESS_TOKEN** Access Token (Settings -\u003e Developer settings -\u003e Personal Access Token. Should have repo and workflow priveleges)\n\n**DEFAULT_BACKUP_ENTITIES** Optional parameter, which entities should be backed up. See https://github.com/josegonzalez/python-github-backup  \n\nDefault if not set: `--starred --watched --followers --following --issues --labels  --milestones --repositories --wikis --gists --starred-gists --private --releases`\n\nBackup zip will be stored in `/out`. Should be mapped as volume (e.g. samba/nfs mount)\n\n## Complete example with docker-compose\n\ncreate backup.env with following content:\n\n```bash\nGH_USER=xxx\nGH_ACCESS_TOKEN=xxx\n```\n\nFollowing `docker-compose.yml` starts backup (once). You should trigger the execution per cron `docker-compose run backup` or by using of external tools like [crony](https://github.com/0xERR0R/crony). You can also use this image as a Kubernetes CronJob. Following `docker-compose.yml` will store backup on a samba mounted directory (NAS).\n\n```yaml\nversion: '2.2'\nservices:\n   backup:\n      image: spx01/gh-backup\n      env_file: \n      - backup.env\n      container_name: gh-backup\n      init: true\n      volumes:\n      - backup:/out     \nvolumes:\n   bitwarden:\n   backup:\n      driver: local\n      driver_opts:\n        type: cifs\n        o: username=xx,password=xx,rw\n        device: //IP_NAS/path/to/folder\n```\n\nCredits: Thanks to `josegonzalez` for the github-backup: https://github.com/josegonzalez/python-github-backup\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xerr0r%2Fgh-backup-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xerr0r%2Fgh-backup-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xerr0r%2Fgh-backup-docker/lists"}