DEV Community

Mahesh
Mahesh

Posted on • Edited on

1

Backup Github

Install: https://github.com/josegonzalez/python-github-backup


  • Backup All Repositories in account
github-backup <username> -t <personal-access-token> -o <output-directory> --repositories --private
Enter fullscreen mode Exit fullscreen mode

  • Backup All Repositories in organization
github-backup <organization-name> -t <personal-access-token> -o <output-directory> --repositories --private --organization
# <organization-name> is case-sensitive
Enter fullscreen mode Exit fullscreen mode

Check README.md of repositories for more information about the commands

Script donwloads all the branches of each repositores, to check them run git branch -a inside repositories

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs