1.0.7 • Published 11 months ago

backup-github v1.0.7

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
11 months ago

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.

1.0.7

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago