{"id":16162653,"url":"https://github.com/slashtechno/gobackup-github","last_synced_at":"2025-09-11T01:40:42.048Z","repository":{"id":41049019,"uuid":"503132003","full_name":"slashtechno/gobackup-github","owner":"slashtechno","description":"Go program that utilizes the Github API to backup repos (owned and starred)","archived":false,"fork":false,"pushed_at":"2024-10-01T19:44:07.000Z","size":664,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T00:09:44.910Z","etag":null,"topics":["backup","cli","git","github","github-api","golang","hacktoberfest","repository"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slashtechno.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}},"created_at":"2022-06-13T22:22:10.000Z","updated_at":"2024-08-26T19:48:42.000Z","dependencies_parsed_at":"2024-02-04T00:27:32.951Z","dependency_job_id":"b3ec7923-bb9e-4072-aec0-c7318a853efc","html_url":"https://github.com/slashtechno/gobackup-github","commit_stats":null,"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashtechno%2Fgobackup-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashtechno%2Fgobackup-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashtechno%2Fgobackup-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashtechno%2Fgobackup-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slashtechno","download_url":"https://codeload.github.com/slashtechno/gobackup-github/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244318563,"owners_count":20433933,"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","cli","git","github","github-api","golang","hacktoberfest","repository"],"created_at":"2024-10-10T02:32:12.080Z","updated_at":"2025-03-18T22:31:11.636Z","avatar_url":"https://github.com/slashtechno.png","language":"Go","readme":"# gobackup-github  \n[![GitHub Actions Build Workflow Status](https://img.shields.io/github/actions/workflow/status/slashtechno/gobackup-github/go-build.yml?style=for-the-badge\u0026label=Build\u0026labelColor=%2344cc11\u0026color=%23555555)](https://github.com/slashtechno/gobackup-github/actions/workflows/go-build.yml) ![Static Badge](https://img.shields.io/badge/open-source-_?style=for-the-badge\u0026labelColor=%23ef4041\u0026color=%23c13a3a) [![GitHub Actions Docker Workflow Status](https://img.shields.io/github/actions/workflow/status/slashtechno/gobackup-github/docker.yml?style=for-the-badge\u0026label=Docker%20Image%20Build)](https://github.com/slashtechno/gobackup-github/actions/workflows/docker.yml)\n\nGo program that utilizes the Github API to backup a user's repositories, including repositories that have been starred. Multiple users can be backed up, including all members of a GitHub organization.\n![Demo](demo.gif)\n\n### Setup and Usage\n1. Create a Github personal access token with the following scopes:  `read:user, repo`  \n2. Either download a binary for your system from releases, or build the program and add it to your PATH with `go install`.\n3. Copy `config.example.yaml` to `config.yaml` and fill in the fields.\n    - In addition, command line flags can be used to specify configuration options. Use the `help` command or the `--help` flag for more information.\n    - It is recommended to read through the `config.example.yaml` file to understand the configuration options.\n4. Run the program with `gobackup-github backup` \n    - To perform a rolling backup, run `gobackup-github backup continuous`\n\n### Docker  \nThis program can also be run in Docker.  \n\u003c!-- To pull the image, run `docker pull ghcr.io/slashtechno/gobackup-github:latest`   --\u003e\nTo create a container that removes itself after exiting, run `docker run --rm -it -v ${PWD}/config.yaml:/config.yaml -v ${PWD}/backup:/backups ghcr.io/slashtechno/gobackup-github:latest`  \nTo create a container that runs on boot and performs a rolling backup every 24 hours, run `docker run --restart unless-stopped -d --name gobackup-github -v ${PWD}/config.yaml:/config.yaml -v ${PWD}/backup:/backups ghcr.io/slashtechno/gobackup-github:latest continuous -i 24h`\n\n#### Docker Compose  \nYou can also just run `docker compose up -d` to start the container with automatic restarts, assuming you have a `docker-compose.yml` file in the same directory as the `config.yaml` file. You can also edit the `docker-compose.yml` file to change configuration and to manage the rolling backup, if needed.\n\n### Contributing  \nPull Requests are welcome!  ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashtechno%2Fgobackup-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslashtechno%2Fgobackup-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashtechno%2Fgobackup-github/lists"}