https://github.com/johnbedeir/github-backup-shell-script
This is a shell script to clone public repositories and require authentication when private
https://github.com/johnbedeir/github-backup-shell-script
Last synced: 11 months ago
JSON representation
This is a shell script to clone public repositories and require authentication when private
- Host: GitHub
- URL: https://github.com/johnbedeir/github-backup-shell-script
- Owner: johnbedeir
- Created: 2022-04-19T20:44:03.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-20T18:42:33.000Z (about 4 years ago)
- Last Synced: 2025-07-23T03:03:23.698Z (11 months ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Github-Backup-Shell-Script
## Step 1:
### Create `.netrc` file which will include github username and a generated token as shown in the example:
```
machine github.com
login ADD-USERNAME-HERE
password ADD-TOKEN-HERE
```
## Step 2:
### Add the repositories links in ``my.list`` file as shown:
```
https://github.com/......
https://github.com/......
https://github.com/......
```
``You can create more than one list with different name and run all of them together using the command in step 2``
## Step 3:
### Run the script
```
bash github-backup.sh *.list
```