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)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay