Skip to content

Back up all your Github repositories in a directory.

Notifications You must be signed in to change notification settings

philipperemy/github-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Github backup

Back up all your github repositories in a directory on your disk.

Installation

  • Generate a personal access token to access the Github API here: https://github.com/settings/tokens.

  • Tick: repo Full control of private repositories and click on Generate.

  • Create an environment variable with this freshly created token: export GITHUB_TOKEN="MY_GITHUB_TOKEN".

  • Run this command to install the package: pip install github-back-up.

Usage

Usage: gitbackup [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  clone_all  Clone all the repositories.
  pull_all   Pull from all previously cloned repositories.

Example

  • Clone all your public/private repositories to a timestamp-ed directory: gitbackup clone_all.

  • Clone all your public/private repositories to the directory here: gitbackup clone_all --clone_dir here.

  • Update a backup directory in the directory here: gitbackup pull_all here.

About

Back up all your Github repositories in a directory.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages