New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@antony/github-backup

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antony/github-backup

Backup all of your organisation's github repositories, including pagination

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Github Backup

A tool to backup all of your organisation's github repositories.

CircleCI JavaScript Style Guide

gh-backup

Features

  • Private repositories
  • Paginates an entire github organisation, not just the first page!
  • Parallel clone (10 streams)
  • Intuitive CLI to show progress
  • Uses github API v3

Why?

There are a lot of tools out in the wild for the same purpose, but not a single one of them works reliably or paginates a large organisation, so you get the first 50-100 repositories and then you have to edit the code to get more...

Pre-requisites

You need a github token if you want to backup private repositories. it needs repo permissions.

Usage

Just install the package locally and run the binary it provides:

npm i -g @antony/github-backup
github-backup --token <your-token-from-above> --organisation <organisation> --workingDir=./some/path

Where:

  • token is your github token (optional)
  • organisation is your organisation name
  • workingDir is where you want the repositories cloned to. If it does not exist it will be created.

FAQs

Package last updated on 12 Jun 2018

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc