{"id":19594916,"url":"https://github.com/carnivuth/github_sync","last_synced_at":"2026-04-28T16:01:33.225Z","repository":{"id":247273471,"uuid":"824005068","full_name":"carnivuth/github_sync","owner":"carnivuth","description":"handy script to clone public repositories from a public account for backup that runs on docker container","archived":false,"fork":false,"pushed_at":"2025-03-14T15:30:26.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T23:03:00.739Z","etag":null,"topics":["backup","backup-script","docker","docker-compose","github","repository"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carnivuth.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-07-04T07:16:44.000Z","updated_at":"2025-03-14T15:30:29.000Z","dependencies_parsed_at":"2024-10-26T11:12:39.819Z","dependency_job_id":"210a4fd8-3b17-40eb-bda1-e0aac04a4f4c","html_url":"https://github.com/carnivuth/github_sync","commit_stats":null,"previous_names":["carnivuth/github_sync"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/carnivuth/github_sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carnivuth%2Fgithub_sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carnivuth%2Fgithub_sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carnivuth%2Fgithub_sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carnivuth%2Fgithub_sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carnivuth","download_url":"https://codeload.github.com/carnivuth/github_sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carnivuth%2Fgithub_sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32387923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","backup-script","docker","docker-compose","github","repository"],"created_at":"2024-11-11T08:45:11.501Z","updated_at":"2026-04-28T16:01:33.192Z","avatar_url":"https://github.com/carnivuth.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github sync\n\nA handy script for backupping public repos from a github account :) (it's just my fear of loosing data :c ).\n\n## Why this\n\n**DO BACKUPS!!** this is what as been told to me since i started doing system administration tasks and projects. So i wrote this script moved by the fear of losing github repositories (as if my hard drives were more reliable than microsoft ones), originally designed to run as a cron job.\n\nRecently i have migrated my homelab services to a configuration managed with ansible and terraform and i found myself dealing with a lot of scripts like this one that were not designed to be ported from a machine to another and the idea comes to mind:\n\n*What if i put a cron script inside a docker container?*\n\nand this abomination was born :)\n\n## How it works\n\nThe script runs as a `cron` job, it fetches the github api to download the list of public repos and downloads them, then it curls the configured monitoring api.\n\n```mermaid\nsequenceDiagram\nparticipant github\nparticipant github_sync\nparticipant monitoring_tool\ngithub_sync -\u003e\u003e github: pull repository list\nloop public repositories\ngithub_sync -\u003e\u003e github: clone repository\nend\ngithub_sync -\u003e\u003e monitoring_tool: notify status\n```\n\n## Installation\n\nInstallation is done trough docker container a sample can be as follows\n\n```yaml\nservices:\n  github_sync:\n    container_name: github_sync\n    image: carnivuth/github_sync:latest\n    environment:\n      HEALTHCHECK: \"[HEALTHCHECKS.IO URL]\"\n      NTFY: \"[NTFY URL]\"\n      ACCOUNT: \"[GITHUB USERNAME TO BACKUP]\"\n    volumes:\n      - \"\u003cdata folder\u003e:/var/lib/github_sync\"\n      - \"/etc/timezone:/etc/timezone:ro\"\n      - \"/etc/localtime:/etc/localtime:ro\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarnivuth%2Fgithub_sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarnivuth%2Fgithub_sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarnivuth%2Fgithub_sync/lists"}