{"id":13598270,"url":"https://github.com/ChappIO/git-backup","last_synced_at":"2025-04-10T06:31:35.949Z","repository":{"id":39925718,"uuid":"370723630","full_name":"ChappIO/git-backup","owner":"ChappIO","description":"Backup all your github \u0026 gitlab repositories","archived":false,"fork":false,"pushed_at":"2025-04-03T15:22:32.000Z","size":107,"stargazers_count":229,"open_issues_count":1,"forks_count":15,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T05:51:10.794Z","etag":null,"topics":["backup","github","gitlab"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChappIO.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":"2021-05-25T14:33:53.000Z","updated_at":"2025-04-03T20:19:21.000Z","dependencies_parsed_at":"2024-01-14T06:04:20.746Z","dependency_job_id":"67e13a53-5650-418d-be80-3bfc577f2ec7","html_url":"https://github.com/ChappIO/git-backup","commit_stats":{"total_commits":26,"total_committers":5,"mean_commits":5.2,"dds":0.5769230769230769,"last_synced_commit":"f85018a51d14c586564dfb34cca2e9c863b9c33a"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChappIO%2Fgit-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChappIO%2Fgit-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChappIO%2Fgit-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChappIO%2Fgit-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChappIO","download_url":"https://codeload.github.com/ChappIO/git-backup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248168239,"owners_count":21058793,"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","github","gitlab"],"created_at":"2024-08-01T17:00:51.163Z","updated_at":"2025-04-10T06:31:30.936Z","avatar_url":"https://github.com/ChappIO.png","language":"Go","readme":"# git-backup\n\nA cli to pull all your git repositories for backup purposes. It is completely stand-alone. You don't even need to install git.\n\n## Download\n\nThe latest version can be downloaded from the [releases page](https://github.com/ChappIO/git-backup/releases).\n\n## Configuration File\n\nExample yaml Configuration:\n```yaml\n# The github section contains backup jobs for\n# GitHub and GitHub Enterprise\ngithub:\n    # (optional) The job name. This is used to\n    # create a subfolder in the backup folder. \n    # (default: GitHub)\n  - job_name: github.com\n    # (required) The GitHub personal access\n    # token. Create one with the scopes:\n    # \"read:org, repo\"\n    # https://github.com/settings/tokens/new?scopes=repo,read:org\n    access_token: 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\n    # (optional) Back up repos you own.\n    # (default: true)\n    owned: true\n    # (optional) Back up repos you starred.\n    # (default: true)\n    starred: true\n    # (optional) Back up repos on which you \n    # are a collaborator. (default: true)\n    collaborator: true\n    # (optional) Back up repos owned by \n    # organisations of which you are a member.\n    # (default: true)\n    org_member: true\n    # (optional) Set this url to connect to\n    # your self-hosted github install.\n    # (default: https://api.github.com)\n    url: https://github.mydomain.com\n    # (optional) Exclude this list of repos\n    excluded:\n      - my-namespace/excluded-repository-name\n# The gitlab section contains backup jobs for\n# GitLab.com and GitLab on premise\ngitlab:\n  # (optional) The job name. This is used to\n  # create a subfolder in the backup folder. \n  # (default: GitLab)\n  - job_name: gitlab.com\n    # (required) The GitLab access token.\n    # Create one with the scopes: \"api\"\n    # https://gitlab.com/-/profile/personal_access_tokens?scopes=api\u0026name=git-backup\n    access_token: glpat-6t78yuihy789uy8t768\n    # (optional) Back up repos you own.\n    # (default: true)\n    owned: true\n    # (optional) Back up repos you starred.\n    # (default: true)\n    starred: true\n    # (optional) Back up repos owned by \n    # teams of which you are a member.\n    # (default: true)\n    member: true\n    # (optional) Set this url to connect to\n    # your self-hosted gitlab install.\n    # (default: https://gitlab.com/)\n    url: https://gitlab.mydomain.com\n    # (optional) Exclude this list of repos\n    excluded:\n      - my-namespace/excluded-repository-name\n```\n\n## Usage: CLI\n\n```asciidoc\nUsage: git-backup\n\nOptions:\n  -backup.path string\n      The target path to the backup folder. (default \"backup\")\n  -config.file string\n      The path to your config file. (default \"git-backup.yml\")\n  -backup.fail-at-end\n      Fail at the end of backing up repositories, rather than right away.\n  -backup.bare-clone\n      Make bare clones without checking out the main branch.\n  -insecure\n      Use this flag to disable verification of SSL/TLS certificates\n  -version\n      Show the version number and exit.\n```\n\n## Usage: Docker\n\nFirst, create your [git-backup.yml file](#configuration-file) at `/path/to/your/backups`.\n\nThen update your backups using the mounted volume.\n\n```bash\ndocker run -v /path/to/backups:/backups ghcr.io/chappio/git-backup:1\n```\n\n### Parameters\n\nYou can specify several parameters when starting this container.\n\n| **Parameter**                  | **Description**                                                                        |\n|--------------------------------|----------------------------------------------------------------------------------------|\n| `-v /path/to/backups:/backups` | Mount the folder where you want to store your backups and read you configuration file. |\n| `-e TZ=Europe/Amsterdam`       | Set the timezone used for logging.                                                     |\n| `-e PUID=0`                    | Set the user id of the unix user who will own the backup files in /backup.             |\n| `-e PGID=0`                    | Set the group id of the unix user's group who will own the backup files.               | \n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChappIO%2Fgit-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FChappIO%2Fgit-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChappIO%2Fgit-backup/lists"}