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)

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay