DEV Community

Mahesh
Mahesh

Posted on • Updated on

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)