Backup GitHub repositories locally.
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
Backup GitHub repositories locally. This tool mirrors all public repositories of a GitHub user and all of the organizations that user is publicly a member of. It also mirrors any repositories the user has starred. If the repositories already exist on disk, they are updated. This script is meant to be run as a cron job.
The program uses the GitHub API to discover repositories, and by default it accesses it unauthenticated, which subjects it to lower rate limits. For most people running this every few hours won't be a problem. If you start getting 403 Forbidden errors, you can create a personal access token and store it in the GITHUBACCESSTOKEN environment variable to get a higher rate limit.
npm install -g github-backup
github-backup [-h] [-v] [--include INCLUDE] [--dry-run] username path