Socket
Book a DemoInstallSign in
Socket

github-backup

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-backup

Backup GitHub repositories locally

0.2.0
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

github-backup

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 GITHUB_ACCESS_TOKEN environment variable to get a higher rate limit.

Installation

  • Install Node.js
  • Run npm install -g github-backup

Usage

github-backup [-h] [-v] [--include INCLUDE] [--dry-run] username path

To-do

  • Add ability to specify single individual repository as in "user/repository" or "organization/repository".
  • Discover and backup private repositories.

Keywords

git

FAQs

Package last updated on 27 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.