Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Backup all your GitHub and Bitbucket repos with minimal configuration
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
spec
.gitignore
LICENSE.txt
Rakefile
Readme.markdown
backup-gitbucket.gemspec
config.yaml.sample

Readme.markdown

Backup GitBucket - Backup all your GitHub and BitBucket repositories

Introduction

backup_gitbucket.rb is a tiny Ruby-Script to backup all your GitHub and/or BitBucket repositories. It uses the API to figure out the list of all repos (your's and organizational repos).

Git repositories are cloned in --mirror mode. So they will include all remote branches.

Why?

I like GitHub's social features and BitBucket's private repos. But having a local backup feels nice too ;-)

How to use?

  • gem install excon
  • gem install json
  • edit config.yaml.sample to match your settings.
  • ./bin/backup-gitbucket config.yaml

Known issues

The script works fine for me, but it currently lacks proper error-reporting. (Pull requests welcome.)

Tests?

I currently play with rspec. Execute the tests with rspec spec --color --format doc

What is the License?

Licensed under Apache License Version 2.0.

Enjoy, Jens

Something went wrong with that request. Please try again.