This bash script allows you to backup all your Github repositories using your Personal Access Token.
- Set the
GITHUB_TOKENenvironment variable with your Personal Access Token (with repo scope). - Make sure you have
curl,gitandjqinstalled on your system.
- Clone this repository.
- Set the
GITHUB_TOKENenvironment variable with your Personal Access Token. - Run the script
backup_repos.sh.
The script will fetch the list of your repositories from GitHub, clone or update each repository to the backup directory, and display the progress and status of each operation.
Note: The script will backup a maximum of 100 repositories.
This script is released under the MIT License. Feel free to use, modify, and share it.