{"id":21944535,"url":"https://github.com/torrobinson/github-synology-sync","last_synced_at":"2025-04-22T21:06:25.390Z","repository":{"id":63420970,"uuid":"287424242","full_name":"torrobinson/github-synology-sync","owner":"torrobinson","description":"🔄 A small bash script I use to regularly backup all my GitHub repos to my Synology NAS","archived":false,"fork":false,"pushed_at":"2021-12-20T18:19:22.000Z","size":14,"stargazers_count":43,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T21:06:19.998Z","etag":null,"topics":["backup","bash","github","nas","repository","synology"],"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/torrobinson.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}},"created_at":"2020-08-14T02:23:57.000Z","updated_at":"2024-12-04T06:55:56.000Z","dependencies_parsed_at":"2022-11-18T16:31:17.074Z","dependency_job_id":null,"html_url":"https://github.com/torrobinson/github-synology-sync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torrobinson%2Fgithub-synology-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torrobinson%2Fgithub-synology-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torrobinson%2Fgithub-synology-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/torrobinson%2Fgithub-synology-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/torrobinson","download_url":"https://codeload.github.com/torrobinson/github-synology-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250324691,"owners_count":21411946,"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","bash","github","nas","repository","synology"],"created_at":"2024-11-29T04:16:34.425Z","updated_at":"2025-04-22T21:06:25.351Z","avatar_url":"https://github.com/torrobinson.png","language":"Shell","readme":"\n# github-synology-sync\n\nA small bash script I use to regularly backup all my GitHub repos to my Synology NAS.\n\nThis repo serves mainly as a backup for my solution, should I lose it in the future.\n\nIt will use the GitHub API to iterate through all your **owned** public and private repositories, and back up every `master` branch, zipped, onto your Synology NAS.\n\nDue to API limitations, this only backs up the first 100 repositories.\n\n## Instructions\n\n - [ ] Create an OAuth token\n\t - [ ]  Go to https://github.com/settings/tokens\n\t - [ ]  Click the \"Personal Access Tokens\" tab\n\t - [ ]  Click \"Generate new token\"\n\t - [ ]  Check the scopes `repo` and `read:user`\n\t - [ ]  Create the token and immediately copy and paste it in `github2synology.sh`, into the `OAUTH_TOKEN` variable.\n - [ ]  Drop the script (`github2synology.sh`) somewhere on your NAS\n\t - [ ]  For example, I dropped it in a `(root)\\sourcecode\\GitHub` shared folder\n\t - [ ]  Edit `github2synology.sh` and update the `BACKUP_PATH` variable to reflect where you've dropped the script and want your repos backed-up to\n - [ ]  Create the scheduled task\n\t - [ ]  Open Control Panel -\u003e System -\u003e Task Scheduler\n\t - [ ]  Click Create -\u003e Scheduled Task -\u003e User-defined script\n\t - [ ]  **General Tab:**\n\t\t - [ ] Give it a name and select your `root` user\n\t\t \n\t - [ ]  **Schedule Tab:**\n\t\t - [ ]  Fill out any schedule as you need\n\t\t \n\t - [ ]  **Task Settings Tab**\n\t\t - [ ]   Enter the \"Run command\" as follows, replacing \"sourcecode/GitHub\" with the shared folder you created, if different:\n\t\t```bash\n\t\tbash /volume1/sourcecode/GitHub/github2synology.sh\n\t\t``` \n\t\t\t\n\t\t\n\t\t - [ ]  Click \"OK\" to create the task\n\t\t \n - [ ]  Right-click your new User-defined script and click \"Run\" to immediately run the task.\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorrobinson%2Fgithub-synology-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorrobinson%2Fgithub-synology-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorrobinson%2Fgithub-synology-sync/lists"}