🔄 A small bash script I use to regularly backup all my GitHub repos to my Synology NAS
A small bash script I use to regularly backup all my GitHub repos to my Synology NAS.
This repo serves mainly as a backup for my solution, should I lose it in the future.
It 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.
Due to API limitations, this only backs up the first 100 repositories.
repo
and read:user
github2synology.sh
, into the OAUTH_TOKEN
variable.github2synology.sh
) somewhere on your NAS(root)\sourcecode\GitHub
shared foldergithub2synology.sh
and update the BACKUP_PATH
variable to reflect where you’ve dropped the script and want your repos backed-up to[ ] Create the scheduled task
[ ] General Tab:
root
user[ ] Schedule Tab:
[ ] Task Settings Tab
bash /volume1/sourcecode/GitHub/github2synology.sh
- [ ] Click "OK" to create the task