{"id":23564306,"url":"https://github.com/tdiprima/gitbak","last_synced_at":"2025-11-01T20:30:33.356Z","repository":{"id":268609558,"uuid":"206326843","full_name":"tdiprima/gitbak","owner":"tdiprima","description":"GitHub Backup","archived":false,"fork":false,"pushed_at":"2025-02-03T13:23:38.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T14:28:10.301Z","etag":null,"topics":["backup-script","backup-tool","github-api","shell-scripting"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/tdiprima.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":"2019-09-04T13:32:46.000Z","updated_at":"2025-02-03T13:23:43.000Z","dependencies_parsed_at":"2024-12-17T21:17:59.539Z","dependency_job_id":"860ebcbb-8e1c-4863-b8f4-a7b784bfa1be","html_url":"https://github.com/tdiprima/gitbak","commit_stats":null,"previous_names":["tdiprima/gitbak"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdiprima%2Fgitbak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdiprima%2Fgitbak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdiprima%2Fgitbak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdiprima%2Fgitbak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tdiprima","download_url":"https://codeload.github.com/tdiprima/gitbak/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239323836,"owners_count":19620090,"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-script","backup-tool","github-api","shell-scripting"],"created_at":"2024-12-26T17:13:50.291Z","updated_at":"2025-11-01T20:30:33.311Z","avatar_url":"https://github.com/tdiprima.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Backup\n\nBack up all your repositories.\n\n(I believe I modified backup-github.sh from [this script](https://github.com/tango-controls/GitHubBackup/blob/master/backup-github.sh).  Or you could check [The complete list of every GitHub backup script](https://rewind.com/blog/every-github-backup-script-complete-list/) 😄)\n\nThe script has a mechanism to prune old backups based on their age.  It prunes files older than a specified number of days (`GHBU_PRUNE_AFTER_N_DAYS`).\n\n## Usage\n\nUse `./backup-github.sh`\n\nSwitch to the correct endpoint for users or organizations:\n\n`GHBU_ORG_TYPE=${GHBU_ORG_TYPE-\"users | orgs\"}`\n\nExport your github token:\n\n`export GHBU_TOKEN=your_github_token_here`\n\n## SSH Key\n\nIt is necessary to set up an SSH key to connect to GitHub.\n\n### See:\n\n* [Connecting To GitHub With SSH](https://help.github.com/articles/connecting-to-github-with-ssh/)\n* [Adding a New SSH Key to Your GitHub Account](https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/)\n\n\u003c!-- Tammy DiPrima --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdiprima%2Fgitbak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftdiprima%2Fgitbak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdiprima%2Fgitbak/lists"}