{"id":23749640,"url":"https://github.com/s4b7r/git-remote-backup","last_synced_at":"2026-05-01T06:33:32.431Z","repository":{"id":95462344,"uuid":"507643958","full_name":"s4b7r/git-remote-backup","owner":"s4b7r","description":"Regular backups of Git remotes","archived":false,"fork":false,"pushed_at":"2022-12-01T16:33:04.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-01T07:52:29.001Z","etag":null,"topics":["backup","git"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/s4b7r.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-26T17:44:04.000Z","updated_at":"2022-06-26T17:44:32.000Z","dependencies_parsed_at":"2023-04-22T10:46:34.499Z","dependency_job_id":null,"html_url":"https://github.com/s4b7r/git-remote-backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/s4b7r/git-remote-backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s4b7r%2Fgit-remote-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s4b7r%2Fgit-remote-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s4b7r%2Fgit-remote-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s4b7r%2Fgit-remote-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s4b7r","download_url":"https://codeload.github.com/s4b7r/git-remote-backup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s4b7r%2Fgit-remote-backup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32487493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","git"],"created_at":"2024-12-31T15:34:27.355Z","updated_at":"2026-05-01T06:33:32.409Z","avatar_url":"https://github.com/s4b7r.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git remote backup\n\nThis is a controller and target for remote Git backups. It does a `remote update` on local mirror repositories to get local backups and pushes it to an additional backup destionation.\n\n## Setup\n\n1. Create direcotries on the additional backup destionation:\n   - `$ftp_path/weekly_this_month`\n   - `$ftp_path/weekly_last_month`\n   - `$ftp_path/daily_last_week`\n   - `$ftp_path/daily_2nd_week`\n2. Run `1-create-localdir.sh`\n3. In `\u003cSCRIPT PATH\u003e/mirror_destination` do `git clone --mirror` for all repos you want to backup.\n4. Make sure your system is configured so that git does not need you to manually authenticate with the remote.\n5. `chmod u+x git-backup_do_*.sh`\n6.  Run `requirements.sh`\n7.  Create `ftp.secret` from `ftp.secret.sample`\n8.  Fill all necessary variables in the script files.\n    - **I am sorry, this must be made easier in the future.**\n    - Caution: some places still name it FTP but actually SFTP is used now.\n9.  Add `git-backup_do_*.sh` scripts to crontab: use `crontab -e` or put into `/etc/crontab`, e.g.:\n    -  `0  19 *   * *   \u003cSCRIPT PATH\u003e/git-backup_do_daily.sh`\n    -  `45 12 1-7 * *   [ $(date +\\%u) -eq 5 ] \u0026\u0026 \u003cSCRIPT PATH\u003e/git-backup_do_monthly.sh` (Does it on the first Friday in every month on my system. Please check for yours.)\n    -  `0  13 *   * FRI \u003cSCRIPT_PATH\u003e/git-backup_do_weekly.sh`\n10. Currently VPN connection is hardcoded for connection to remote host.\n    - You need to get those scripts or remove them.\n    - This script expects VPN scripts in `$HOME/scripts/vpn`, e.g. see [Cisco VPN scripts](https://github.com/s4b7r/cisco-vpn-scripts)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs4b7r%2Fgit-remote-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs4b7r%2Fgit-remote-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs4b7r%2Fgit-remote-backup/lists"}