https://github.com/entraptaj/github-repo-backup
GitHub Repo Backup is a NodeJS script to backup all a users GitHub repositories
https://github.com/entraptaj/github-repo-backup
Last synced: over 1 year ago
JSON representation
GitHub Repo Backup is a NodeJS script to backup all a users GitHub repositories
- Host: GitHub
- URL: https://github.com/entraptaj/github-repo-backup
- Owner: EntraptaJ
- Created: 2019-11-11T19:39:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T00:45:48.000Z (over 3 years ago)
- Last Synced: 2025-03-28T20:06:07.871Z (over 1 year ago)
- Language: TypeScript
- Size: 146 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Github Repo Backup
GitHub Repo Backup is a NodeJS Script that backs up all GitHub repositories owned by the user & token
## Usage
Clone or download this repository
Move into the cloned/downloaded repository folder.
**Install dependencies**
Install the NPM dependencies
```
npm install
```
**Secrets**
Create a .env file in the repository directory with your GitHub username & API Token
```
GITHUB_USERNAME=ExampleUser
GITHUB_API_TOKEN=ABCDEFG1245
```
**Running Script**
Run the script (Warning this will clone & fetch all repositories you are the owner of. So if space is an issue, don't do it)
```
npm start
```
You should have all of your repositories in `REPO_DIR/data/USERNAME/`