https://github.com/ryands17/github-backup-repos
A simple Lambda scheduler function to backup all your GitHub repos
https://github.com/ryands17/github-backup-repos
cron github serverless
Last synced: 9 months ago
JSON representation
A simple Lambda scheduler function to backup all your GitHub repos
- Host: GitHub
- URL: https://github.com/ryands17/github-backup-repos
- Owner: ryands17
- Created: 2020-08-25T18:37:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-23T14:34:11.000Z (about 2 years ago)
- Last Synced: 2025-04-08T10:11:12.126Z (about 1 year ago)
- Topics: cron, github, serverless
- Language: JavaScript
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GH Repo backup
### Just a test project created to test the GitHub API SDK
- This makes use of the [Oktokit](https://octokit.github.io/rest.js/v18) Library, with the [Serverless](https://www.serverless.com/) framework for running a scheduled Lambda function
- Also some setup is predefined in this project
- You would need to add these two variables to the [SSM Parameter Store](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html).
- /gh-backup/auth => GitHub [Personal Access Token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)
- /gh-backup/bucket => Bucket name to backup the repos to
The rest of the parameters are configured in [serverless.yml](./serverless.yml) for easy editing
**_Note_**: I have stored the variables with encryption in the Parameter Store, which is why the KMS Decrypt permission is required. If you're not doing the same, then that rule can be safely omitted.