An open API service indexing awesome lists of open source software.

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

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/`