{"id":20556312,"url":"https://github.com/jenkins-zh/git-backup-actions","last_synced_at":"2025-04-14T13:07:15.830Z","repository":{"id":42021533,"uuid":"211617642","full_name":"jenkins-zh/git-backup-actions","owner":"jenkins-zh","description":"Backup git repository into another one","archived":false,"fork":false,"pushed_at":"2022-11-17T01:27:11.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T22:41:16.412Z","etag":null,"topics":["actions","backup","backup-cli","backup-git","git","hacktoberfest"],"latest_commit_sha":null,"homepage":"https://jenkins-zh.github.io","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/jenkins-zh.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}},"created_at":"2019-09-29T06:51:33.000Z","updated_at":"2022-04-18T01:25:08.000Z","dependencies_parsed_at":"2023-01-11T17:22:10.125Z","dependency_job_id":null,"html_url":"https://github.com/jenkins-zh/git-backup-actions","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkins-zh%2Fgit-backup-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkins-zh%2Fgit-backup-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkins-zh%2Fgit-backup-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkins-zh%2Fgit-backup-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jenkins-zh","download_url":"https://codeload.github.com/jenkins-zh/git-backup-actions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886314,"owners_count":21177643,"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":["actions","backup","backup-cli","backup-git","git","hacktoberfest"],"created_at":"2024-11-16T03:26:37.758Z","updated_at":"2025-04-14T13:07:15.440Z","avatar_url":"https://github.com/jenkins-zh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git repo backup Action\n\nGitHub Action for backup your git repository.\n\n## Supported Git Provider\n\n* [gitee](https://gitee.com)\n* [CodeChina](https://codechina.csdn.net/)\n\n## Create Deploy Key\n\n1. Generate deploy key `ssh-keygen -t rsa -f git-backup -q -N \"\"`\n2. Then go to \"Settings \u003e Deploy Keys\" of the target repository\n3. Add your public key within \"Allow write access\" option.\n4. Copy your private deploy key to `GIT_DEPLOY_KEY` secret in your source git repository of \"Settings \u003e Secrets\"\n\n## Environment Variables\n\n- `GIT_DEPLOY_KEY`: **Required**, your deploy key (ssh private key) which has **Write access**\n- `TARGET_GIT`: **required**, your backup git repository (please use ssh or git protocol)\n- `BRANCH`: **optional**, the branch you want to backup (default value is `master`)\n\n```\nname: Backup Git Repository\n\non:\n  push:\n    branches:\n    - master\n\njobs:\n  git-repo-backup:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@master\n    - name: git-repo-backup\n      uses: jenkins-zh/git-backup-actions@v0.0.1\n      env:\n        GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}\n        TARGET_GIT: \"git@gitee.com:surenpi/surenpi.git\"\n        BRANCH: master\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenkins-zh%2Fgit-backup-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjenkins-zh%2Fgit-backup-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenkins-zh%2Fgit-backup-actions/lists"}