Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

backup-github

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backup-github

Open-source GitHub mass-repo backup tool.

  • 1.0.7
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

backup-github

Open-source GitHub mass-repo backup tool.

This tool will create cross-platform terminal commands for cloning all of a user's repositories.

If your code is only on the cloud, you have no control over its destiny.

backup-github gives you the tools you need to set up your own backup/download events, ensuring that you have access to your code, no matter what.

Installation

Install by running:

npm install -g backup-github

or:

npm install -g https://github.com/NotTimTam/backup-github.git

Usage

Import backup-github into your Node.js script:

const BGH = require("backup-github");

Generate your backup commands using:

const logBackupCommand = async () => {
	// An array of specific repositories from any Git platform can be provided, or you can use this function to auto-generate a list of all of a user's repositories:
	const repos = await BGH.getRepos(
		"YOUR_USERNAME",
		"YOUR_ACCESS_TOKEN" // Optional. Provides access to private repos.
	);

	// Log the created commands:
	console.log(await BGH.createBackupCommands(repos));
};
logBackupCommand();

To access your private repositories, you'll need to provide your GitHub access token.

After you generate your command string, you can use Node.js's exec() function, or manually copy-paste the commands into your terminal.

Keywords

FAQs

Package last updated on 22 Jun 2023

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